Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/sh3 Adapt to ddb constification.



details:   https://anonhg.NetBSD.org/src/rev/fc51fb6f8b9a
branches:  trunk
changeset: 581657:fc51fb6f8b9a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jun 03 15:01:44 2005 +0000

description:
Adapt to ddb constification.

diffstat:

 sys/arch/sh3/sh3/db_interface.c |  20 +++++++++++---------
 sys/arch/sh3/sh3/db_memrw.c     |   6 +++---
 2 files changed, 14 insertions(+), 12 deletions(-)

diffs (95 lines):

diff -r 9a2566995703 -r fc51fb6f8b9a sys/arch/sh3/sh3/db_interface.c
--- a/sys/arch/sh3/sh3/db_interface.c   Fri Jun 03 14:35:36 2005 +0000
+++ b/sys/arch/sh3/sh3/db_interface.c   Fri Jun 03 15:01:44 2005 +0000
@@ -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 @@
 
 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 @@
  */
 #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 @@
  * 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 @@
 #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 -r 9a2566995703 -r fc51fb6f8b9a sys/arch/sh3/sh3/db_memrw.c
--- a/sys/arch/sh3/sh3/db_memrw.c       Fri Jun 03 14:35:36 2005 +0000
+++ b/sys/arch/sh3/sh3/db_memrw.c       Fri Jun 03 15:01:44 2005 +0000
@@ -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 @@
  * 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;
 



Home | Main Index | Thread Index | Old Index