Adapt to recent constification of db_interface.h and db_sym.h.
This commit is contained in:
parent
8529448f16
commit
57ef378309
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_disasm.c,v 1.31 2005/05/17 04:14:57 christos Exp $ */
|
||||
/* $NetBSD: db_disasm.c,v 1.32 2005/05/30 21:15:28 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -63,7 +63,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.31 2005/05/17 04:14:57 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.32 2005/05/30 21:15:28 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -2917,7 +2917,7 @@ print_disp(dis_buffer_t *dbuf, int disp, int sz, int rel)
|
||||
{
|
||||
db_expr_t diff;
|
||||
db_sym_t sym;
|
||||
char *symname;
|
||||
const char *symname;
|
||||
u_long nv;
|
||||
|
||||
prints(dbuf, disp, sz);
|
||||
@ -2948,7 +2948,7 @@ print_addr(dis_buffer_t *dbuf, u_long addr)
|
||||
{
|
||||
db_expr_t diff;
|
||||
db_sym_t sym;
|
||||
char *symname;
|
||||
const char *symname;
|
||||
|
||||
diff = INT_MAX;
|
||||
symname = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_trace.c,v 1.40 2004/08/28 22:06:28 thorpej Exp $ */
|
||||
/* $NetBSD: db_trace.c,v 1.41 2005/05/30 21:15:28 he Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.40 2004/08/28 22:06:28 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.41 2005/05/30 21:15:28 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
@ -396,12 +396,12 @@ findregs(struct stackpos *sp, db_addr_t addr)
|
||||
*/
|
||||
void
|
||||
db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
|
||||
char *modif, void (*pr)(const char *, ...))
|
||||
const char *modif, void (*pr)(const char *, ...))
|
||||
{
|
||||
int i, nargs;
|
||||
long val;
|
||||
db_addr_t regp;
|
||||
char * name;
|
||||
const char * name;
|
||||
struct stackpos pos;
|
||||
struct pcb *pcb = curpcb;
|
||||
boolean_t kernel_only = TRUE;
|
||||
@ -409,7 +409,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
|
||||
int fault_pc = 0;
|
||||
|
||||
{
|
||||
char *cp = modif;
|
||||
const char *cp = modif;
|
||||
char c;
|
||||
|
||||
while ((c = *cp++) != 0)
|
||||
@ -521,7 +521,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
|
||||
|
||||
(*pr)("%s", name);
|
||||
if (pos.k_entry != MAXINT && name) {
|
||||
char * entry_name;
|
||||
const char *entry_name;
|
||||
long e_val;
|
||||
|
||||
db_find_sym_and_offset(pos.k_entry, &entry_name,
|
||||
|
Loading…
Reference in New Issue
Block a user