From 65ae0ba36c606ac1b99b565716571d0e2366b7a3 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Fri, 3 Jun 2005 15:01:44 +0000 Subject: [PATCH] Adapt to ddb constification. --- sys/arch/sh3/sh3/db_interface.c | 20 +++++++++++--------- sys/arch/sh3/sh3/db_memrw.c | 6 +++--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/sys/arch/sh3/sh3/db_interface.c b/sys/arch/sh3/sh3/db_interface.c index 2c9917352300..7589c1ea7842 100644 --- a/sys/arch/sh3/sh3/db_interface.c +++ b/sys/arch/sh3/sh3/db_interface.c @@ -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 -__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; diff --git a/sys/arch/sh3/sh3/db_memrw.c b/sys/arch/sh3/sh3/db_memrw.c index 8810dc1d52c5..7c24f0e20a65 100644 --- a/sys/arch/sh3/sh3/db_memrw.c +++ b/sys/arch/sh3/sh3/db_memrw.c @@ -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 -__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 #include @@ -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;