aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-06-20 13:08:12 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-06-20 13:08:12 +0000
commit1cf877ad9b542d1f91bfb60ebe7fe5d303641d20 (patch)
treee23f5abee480eef8e68d90f8354b589d88d6ba8b /gdb/x86-64-tdep.c
parent3fadccb31d170305dfcf1fb0ee9b24eab9d79da3 (diff)
downloadgdb-1cf877ad9b542d1f91bfb60ebe7fe5d303641d20.zip
gdb-1cf877ad9b542d1f91bfb60ebe7fe5d303641d20.tar.gz
gdb-1cf877ad9b542d1f91bfb60ebe7fe5d303641d20.tar.bz2
2002-06-20 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_register_nr2name): Rename to x86_64_register_name. Return type changed to 'const char *'. (x86_64_register_name2nr): Rename to x86_64_register_number. (x86_64_gdbarch_init): Update to reflect the change. * x86-64-tdep.h: Ditto. * x86-64-linux-nat.c (x86_64_fxsave_offset) (supply_fpregset): Ditto.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r--gdb/x86-64-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 111861a..5b6d2cd 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -798,8 +798,8 @@ x86_64_store_return_value (struct type *type, char *valbuf)
}
-char *
-x86_64_register_nr2name (int reg_nr)
+const char *
+x86_64_register_name (int reg_nr)
{
if (reg_nr < 0 || reg_nr >= X86_64_NUM_REGS)
return NULL;
@@ -807,7 +807,7 @@ x86_64_register_nr2name (int reg_nr)
}
int
-x86_64_register_name2nr (const char *name)
+x86_64_register_number (const char *name)
{
int reg_nr;
@@ -989,7 +989,7 @@ x86_64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_long_double_format (gdbarch, &floatformat_i387_ext);
set_gdbarch_num_regs (gdbarch, X86_64_NUM_REGS);
- set_gdbarch_register_name (gdbarch, x86_64_register_nr2name);
+ set_gdbarch_register_name (gdbarch, x86_64_register_name);
set_gdbarch_register_size (gdbarch, 8);
set_gdbarch_register_raw_size (gdbarch, x86_64_register_raw_size);
set_gdbarch_max_register_raw_size (gdbarch, 16);