diff options
author | Michal Ludvig <mludvig@suse.cz> | 2002-06-20 13:08:12 +0000 |
---|---|---|
committer | Michal Ludvig <mludvig@suse.cz> | 2002-06-20 13:08:12 +0000 |
commit | 1cf877ad9b542d1f91bfb60ebe7fe5d303641d20 (patch) | |
tree | e23f5abee480eef8e68d90f8354b589d88d6ba8b /gdb/x86-64-linux-nat.c | |
parent | 3fadccb31d170305dfcf1fb0ee9b24eab9d79da3 (diff) | |
download | gdb-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-linux-nat.c')
-rw-r--r-- | gdb/x86-64-linux-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c index 4c4f643..7749b41 100644 --- a/gdb/x86-64-linux-nat.c +++ b/gdb/x86-64-linux-nat.c @@ -197,12 +197,12 @@ store_regs (int tid, int regno) static void * x86_64_fxsave_offset (elf_fpregset_t * fxsave, int regnum) { - char *reg_name; + const char *reg_name; int reg_index; gdb_assert (x86_64_num_gregs - 1 < regnum && regnum < x86_64_num_regs); - reg_name = x86_64_register_nr2name (regnum); + reg_name = x86_64_register_name (regnum); if (reg_name[0] == 's' && reg_name[1] == 't') { @@ -231,8 +231,8 @@ supply_fpregset (elf_fpregset_t * fxsave) { int i, reg_st0, reg_mxcsr; - reg_st0 = x86_64_register_name2nr ("st0"); - reg_mxcsr = x86_64_register_name2nr ("mxcsr"); + reg_st0 = x86_64_register_number ("st0"); + reg_mxcsr = x86_64_register_number ("mxcsr"); gdb_assert (reg_st0 > 0 && reg_mxcsr > reg_st0); |