diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <graces@redhat.com> + + * monitor.c (monitor_fetch_register): Make name a constant. + (monitor_store_register): Same. + 2002-07-11 Daniel Jacobowitz <drow@mvista.com> Based on patch from Daniel Berlin <dberlin@dberlin.org>. 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) |