diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-09-11 19:09:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-09-11 19:09:35 +0000 |
commit | 9191d39074b049bbf55f8f8443434e0b567c0600 (patch) | |
tree | dbb799606f1afe7956590b9a5453c9df4394547a /gdb | |
parent | 8d4d924b76392dfd191e5bc0e54381befb9af0af (diff) | |
download | fsf-binutils-gdb-9191d39074b049bbf55f8f8443434e0b567c0600.zip fsf-binutils-gdb-9191d39074b049bbf55f8f8443434e0b567c0600.tar.gz fsf-binutils-gdb-9191d39074b049bbf55f8f8443434e0b567c0600.tar.bz2 |
Remove amd64_register_name.
2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
* amd64-tdep.c (amd64_register_name): Removed.
(amd64_init_abi): Don't call set_gdbarch_register_name.
* i386-tdep.c (i386_ymmh_regnum_p): Make it static.
* i386-tdep.h (i386_ymmh_regnum_p): Removed.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/amd64-tdep.c | 15 | ||||
-rw-r--r-- | gdb/i386-tdep.c | 2 | ||||
-rw-r--r-- | gdb/i386-tdep.h | 1 |
4 files changed, 10 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27a5d5f..a1e2a19 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2010-09-11 H.J. Lu <hongjiu.lu@intel.com> + + * amd64-tdep.c (amd64_register_name): Removed. + (amd64_init_abi): Don't call set_gdbarch_register_name. + + * i386-tdep.c (i386_ymmh_regnum_p): Make it static. + + * i386-tdep.h (i386_ymmh_regnum_p): Removed. + 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> Paul Bolle <pebolle@tiscali.nl> diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 9feed90..5472db1 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -257,19 +257,6 @@ static const char *amd64_dword_names[] = "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d" }; -/* Return the name of register REGNUM, or the empty string if it is - an anonymous register. */ - -static const char * -amd64_register_name (struct gdbarch *gdbarch, int regnum) -{ - /* Hide the upper YMM registers. */ - if (i386_ymmh_regnum_p (gdbarch, regnum)) - return ""; - - return tdesc_register_name (gdbarch, regnum); -} - /* Return the name of register REGNUM. */ static const char * @@ -2407,8 +2394,6 @@ amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_tdesc_pseudo_register_name (gdbarch, amd64_pseudo_register_name); - set_gdbarch_register_name (gdbarch, amd64_register_name); - /* AMD64 has an FPU and 16 SSE registers. */ tdep->st0_regnum = AMD64_ST0_REGNUM; tdep->num_xmm_regs = 16; diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 435b623..ea282a7 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -165,7 +165,7 @@ i386_dword_regnum_p (struct gdbarch *gdbarch, int regnum) return regnum >= 0 && regnum < tdep->num_dword_regs; } -int +static int i386_ymmh_regnum_p (struct gdbarch *gdbarch, int regnum) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 49e0727..4d0bae7 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -307,7 +307,6 @@ extern int i386_word_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_dword_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_xmm_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_ymm_regnum_p (struct gdbarch *gdbarch, int regnum); -extern int i386_ymmh_regnum_p (struct gdbarch *gdbarch, int regnum); extern const char *i386_pseudo_register_name (struct gdbarch *gdbarch, int regnum); |