Adapt to ddb constification.

This commit is contained in:
tsutsui 2005-06-03 15:01:44 +00:00
parent 65c1fa1259
commit 65ae0ba36c
2 changed files with 14 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.27 2005/05/31 00:40:17 chs Exp $ */
/* $NetBSD: db_interface.c,v 1.28 2005/06/03 15:01:44 tsutsui Exp $ */
/*-
* Copyright (C) 2002 UCHIYAMA Yasushi. All rights reserved.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.27 2005/05/31 00:40:17 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.28 2005/06/03 15:01:44 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -67,16 +67,16 @@ extern int exp_types;
void kdb_printtrap(u_int, int);
void db_tlbdump_cmd(db_expr_t, int, db_expr_t, char *);
void db_tlbdump_cmd(db_expr_t, int, db_expr_t, const char *);
void __db_tlbdump_page_size_sh4(uint32_t);
void __db_tlbdump_pfn(uint32_t);
void db_cachedump_cmd(db_expr_t, int, db_expr_t, char *);
void db_cachedump_cmd(db_expr_t, int, db_expr_t, const char *);
void __db_cachedump_sh3(vaddr_t);
void __db_cachedump_sh4(vaddr_t);
void db_stackcheck_cmd(db_expr_t, int, db_expr_t, char *);
void db_frame_cmd(db_expr_t, int, db_expr_t, char *);
void db_stackcheck_cmd(db_expr_t, int, db_expr_t, const char *);
void db_frame_cmd(db_expr_t, int, db_expr_t, const char *);
void __db_print_symbol(db_expr_t);
char *__db_procname_by_asid(int);
@ -218,7 +218,8 @@ db_clear_single_step(db_regs_t *regs)
*/
#define ON(x, c) ((x) & (c) ? '|' : '.')
void
db_tlbdump_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
db_tlbdump_cmd(db_expr_t addr, int have_addr, db_expr_t count,
const char *modif)
{
static const char *pr[] = { "_r", "_w", "rr", "ww" };
static const char title[] =
@ -386,7 +387,8 @@ __db_tlbdump_page_size_sh4(uint32_t r)
* CACHE
*/
void
db_cachedump_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
db_cachedump_cmd(db_expr_t addr, int have_addr, db_expr_t count,
const char *modif)
{
#ifdef SH3
if (CPU_IS_SH3)
@ -496,7 +498,7 @@ __db_cachedump_sh4(vaddr_t va)
#undef ON
void
db_frame_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
db_frame_cmd(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
{
struct switchframe *sf = &curpcb->pcb_sf;
struct trapframe *tf, *tftop;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_memrw.c,v 1.5 2003/07/15 03:35:56 lukem Exp $ */
/* $NetBSD: db_memrw.c,v 1.6 2005/06/03 15:01:44 tsutsui Exp $ */
/*
* Mach Operating System
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.5 2003/07/15 03:35:56 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.6 2005/06/03 15:01:44 tsutsui Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@ -63,7 +63,7 @@ db_read_bytes(vaddr_t addr, size_t size, char *data)
* Write bytes to kernel address space for debugger.
*/
void
db_write_bytes(vaddr_t addr, size_t size, char *data)
db_write_bytes(vaddr_t addr, size_t size, const char *data)
{
char *dst;