aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-xdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/arm-xdep.c')
-rw-r--r--gdb/arm-xdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arm-xdep.c b/gdb/arm-xdep.c
index 5fdc3e1..f0d806e 100644
--- a/gdb/arm-xdep.c
+++ b/gdb/arm-xdep.c
@@ -246,10 +246,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);
}