aboutsummaryrefslogtreecommitdiff
path: root/gdb/pyr-xdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-12-10 23:07:24 +0000
committerAndrew Cagney <cagney@redhat.com>1998-12-10 23:07:24 +0000
commitd70a61e74c649e3b3d64b821f5f5415e45febaf4 (patch)
treeb07faa38ea128606f29277767e5bc616ad727b10 /gdb/pyr-xdep.c
parent986b3b988a0d2418ced8f7d75158624673481b83 (diff)
downloadgdb-d70a61e74c649e3b3d64b821f5f5415e45febaf4.zip
gdb-d70a61e74c649e3b3d64b821f5f5415e45febaf4.tar.gz
gdb-d70a61e74c649e3b3d64b821f5f5415e45febaf4.tar.bz2
CARP:
More replace reg_name[] with REGISTER_NAME().
Diffstat (limited to 'gdb/pyr-xdep.c')
-rw-r--r--gdb/pyr-xdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/pyr-xdep.c b/gdb/pyr-xdep.c
index e205b50..7864fd6 100644
--- a/gdb/pyr-xdep.c
+++ b/gdb/pyr-xdep.c
@@ -50,13 +50,13 @@ fetch_inferior_registers (regno)
#if defined(PYRAMID_CONTROL_FRAME_DEBUGGING)
printf_unfiltered ("Fetching register %s, got %0x\n",
- reg_names[regno],
+ REGISTER_NAME (regno),
reg_buf[regno]);
#endif /* PYRAMID_CONTROL_FRAME_DEBUGGING */
if (reg_buf[regno] == -1 && errno == EIO) {
printf_unfiltered("fetch_interior_registers: fetching register %s\n",
- reg_names[regno]);
+ REGISTER_NAME (regno));
errno = 0;
}
supply_register (regno, reg_buf+regno);
@@ -321,10 +321,10 @@ core_file_command (filename, from_tty)
if (val < 0
|| (val = myread (corechan, buf, sizeof buf)) < 0)
{
- char * buffer = (char *) alloca (strlen (reg_names[regno])
+ char * buffer = (char *) alloca (strlen (REGISTER_NAME (regno))
+ 30);
strcpy (buffer, "Reading register ");
- strcat (buffer, reg_names[regno]);
+ strcat (buffer, REGISTER_NAME (regno));
perror_with_name (buffer);
}
@@ -333,7 +333,7 @@ core_file_command (filename, from_tty)
perror_with_name (filename);
#ifdef PYRAMID_CONTROL_FRAME_DEBUGGING
printf_unfiltered ("[reg %s(%d), offset in file %s=0x%0x, addr =0x%0x, =%0x]\n",
- reg_names[regno], regno, filename,
+ REGISTER_NAME (regno), regno, filename,
register_addr(regno, reg_offset),
regno * 4 + last_frame_address,
*((int *)buf));