* monitor.c (monitor_fetch_register): Make name a constant.
authorGrace Sainsbury <graces@redhat.com>
Thu, 11 Jul 2002 21:00:39 +0000 (21:00 +0000)
committerGrace Sainsbury <graces@redhat.com>
Thu, 11 Jul 2002 21:00:39 +0000 (21:00 +0000)
(monitor_store_register): Same.

gdb/ChangeLog
gdb/monitor.c

index 6a5d9a3..977f96c 100644 (file)
@@ -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>.
index 44c8e8f..559c0a2 100644 (file)
@@ -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)