diff options
author | Yao Qi <yao@codesourcery.com> | 2012-11-21 00:29:55 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-11-21 00:29:55 +0000 |
commit | 85ddcc7021c2709e1b2846277d9af37fe0c6ee80 (patch) | |
tree | e2f154c30144bd08eeb756ed557d1ecc162c81cd /gdb/arm-tdep.c | |
parent | 367d69d1bc48fc022cacc4d0c4a712b2f2079b1b (diff) | |
download | gdb-85ddcc7021c2709e1b2846277d9af37fe0c6ee80.zip gdb-85ddcc7021c2709e1b2846277d9af37fe0c6ee80.tar.gz gdb-85ddcc7021c2709e1b2846277d9af37fe0c6ee80.tar.bz2 |
gdb/
2012-11-21 Yao Qi <yao@codesourcery.com>
PR tdep/7438
* gdbarch.sh (smash_text_address): Remove.
* gdbarch.c, gdbarch.h: Regenerate.
* arm-tdep.c (arm_smash_text_address): Remove.
(arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
* hppa-tdep.c (hppa_smash_text_address): Remove.
(hppa_addr_bits_remove): Rename from hppa_smash_text_address.
(hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
Caller update.
* coffread.c (coff_symtab_read): Caller update.
* dbxread.c (process_one_symbol): Likewise.
* elfread.c (record_minimal_symbol): Likewise.
* somread.c (som_symtab_read): Likewise.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 8e96946..7f3155b 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -460,14 +460,6 @@ arm_addr_bits_remove (struct gdbarch *gdbarch, CORE_ADDR val) return (val & 0x03fffffc); } -/* When reading symbols, we need to zap the low bit of the address, - which may be set to 1 for Thumb functions. */ -static CORE_ADDR -arm_smash_text_address (struct gdbarch *gdbarch, CORE_ADDR val) -{ - return val & ~1; -} - /* Return 1 if PC is the start of a compiler helper function which can be safely ignored during prologue skipping. IS_THUMB is true if the function is known to be a Thumb function due to the way it @@ -10283,7 +10275,6 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) frame_base_set_default (gdbarch, &arm_normal_base); /* Address manipulation. */ - set_gdbarch_smash_text_address (gdbarch, arm_smash_text_address); set_gdbarch_addr_bits_remove (gdbarch, arm_addr_bits_remove); /* Advance PC across function entry code. */ |