summaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorGrace Sainsbury <graces@redhat.com>2002-07-11 21:00:39 +0000
committerGrace Sainsbury <graces@redhat.com>2002-07-11 21:00:39 +0000
commit4016fed82ddd21ea7e261f2d6f8a30dc45f5cb3a (patch)
tree2db20b5771ecc3ab16fc86ea86bd0eff7736e127 /gdb/monitor.c
parent306bf42e91a8bef855ca10335358c00634d77051 (diff)
downloadgdb-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.c4
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)