diff options
author | Grace Sainsbury <graces@redhat.com> | 2002-07-11 21:00:39 +0000 |
---|---|---|
committer | Grace Sainsbury <graces@redhat.com> | 2002-07-11 21:00:39 +0000 |
commit | 4016fed82ddd21ea7e261f2d6f8a30dc45f5cb3a (patch) | |
tree | 2db20b5771ecc3ab16fc86ea86bd0eff7736e127 /gdb/monitor.c | |
parent | 306bf42e91a8bef855ca10335358c00634d77051 (diff) | |
download | gdb-4016fed82ddd21ea7e261f2d6f8a30dc45f5cb3a.tar.gz |
* monitor.c (monitor_fetch_register): Make name a constant.
(monitor_store_register): Same.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r-- | gdb/monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |