* monitor.c (monitor_fetch_register): Make name a constant.

(monitor_store_register): Same.
This commit is contained in:
Grace Sainsbury 2002-07-11 21:00:39 +00:00
parent 261397f84f
commit 444199e7c0
2 changed files with 7 additions and 2 deletions

View 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>.

View 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)