From 444199e7c056d4a0c7caf6f2de2bbc0246afcfa2 Mon Sep 17 00:00:00 2001 From: Grace Sainsbury Date: Thu, 11 Jul 2002 21:00:39 +0000 Subject: [PATCH] * monitor.c (monitor_fetch_register): Make name a constant. (monitor_store_register): Same. --- gdb/ChangeLog | 5 +++++ gdb/monitor.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a5d9a35f12..977f96cbf09 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-07-11 Grace Sainsbury + + * monitor.c (monitor_fetch_register): Make name a constant. + (monitor_store_register): Same. + 2002-07-11 Daniel Jacobowitz Based on patch from Daniel Berlin . diff --git a/gdb/monitor.c b/gdb/monitor.c index 44c8e8f1e86..559c0a2f372 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -1174,7 +1174,7 @@ monitor_wait (ptid_t ptid, struct target_waitstatus *status) static void monitor_fetch_register (int regno) { - char *name; + const char *name; char *zerobuf; char *regbuf; int i; @@ -1336,7 +1336,7 @@ monitor_fetch_registers (int regno) static void monitor_store_register (int regno) { - char *name; + const char *name; ULONGEST val; if (current_monitor->regname != NULL) -- 2.30.2