Deal with extra constiness in ddb.

This commit is contained in:
simonb 2005-05-30 02:26:17 +00:00
parent c3fe994ea5
commit 238531a04e
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.13 2003/08/07 16:28:30 agc Exp $ */
/* $NetBSD: db_disasm.c,v 1.14 2005/05/30 02:26:17 simonb Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.13 2003/08/07 16:28:30 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.14 2005/05/30 02:26:17 simonb Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -497,7 +497,7 @@ print_addr(db_addr_t loc)
{
db_expr_t diff;
db_sym_t sym;
char *symname;
const char *symname;
diff = INT_MAX;
symname = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.25 2003/11/26 08:36:49 he Exp $ */
/* $NetBSD: db_trace.c,v 1.26 2005/05/30 02:26:17 simonb Exp $ */
/*
* Mach Operating System
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.25 2003/11/26 08:36:49 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.26 2005/05/30 02:26:17 simonb Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -133,8 +133,8 @@ const struct db_variable db_regs[] = {
const struct db_variable * const db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
void
db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
char *modif, void (*pr)(const char *, ...))
db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
const char *modif, void (*pr)(const char *, ...))
{
#ifndef DDB_TRACE
struct pcb *pcb;

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.194 2004/08/28 17:53:01 jdolecek Exp $ */
/* $NetBSD: trap.c,v 1.195 2005/05/30 02:26:17 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@ -78,7 +78,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.194 2004/08/28 17:53:01 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.195 2005/05/30 02:26:17 simonb Exp $");
#include "opt_cputype.h" /* which mips CPU levels do we support? */
#include "opt_ktrace.h"
@ -764,7 +764,7 @@ void mips_idle(void); /* XXX */
*/
/* forward */
char *fn_name(unsigned addr);
const char *fn_name(unsigned addr);
void stacktrace_subr(int, int, int, int, u_int, u_int, u_int, u_int,
void (*)(const char*, ...));
@ -991,7 +991,7 @@ static struct { void *addr; char *name;} names[] = {
/*
* Map a function address to a string name, if known; or a hex string.
*/
char *
const char *
fn_name(unsigned addr)
{
static char buf[17];
@ -999,7 +999,7 @@ fn_name(unsigned addr)
#ifdef DDB
db_expr_t diff;
db_sym_t sym;
char *symname;
const char *symname;
#endif
#ifdef DDB