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/hppa-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/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 581ffc7..5ee758e 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -2640,7 +2640,7 @@ hppa64_cannot_fetch_register (struct gdbarch *gdbarch, int regnum) } static CORE_ADDR -hppa_smash_text_address (struct gdbarch *gdbarch, CORE_ADDR addr) +hppa_addr_bits_remove (struct gdbarch *gdbarch, CORE_ADDR addr) { /* The low two bits of the PC on the PA contain the privilege level. Some genius implementing a (non-GCC) compiler apparently decided @@ -3058,8 +3058,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_inner_than (gdbarch, core_addr_greaterthan); set_gdbarch_sp_regnum (gdbarch, HPPA_SP_REGNUM); set_gdbarch_fp0_regnum (gdbarch, HPPA_FP0_REGNUM); - set_gdbarch_addr_bits_remove (gdbarch, hppa_smash_text_address); - set_gdbarch_smash_text_address (gdbarch, hppa_smash_text_address); + set_gdbarch_addr_bits_remove (gdbarch, hppa_addr_bits_remove); set_gdbarch_believe_pcc_promotion (gdbarch, 1); set_gdbarch_read_pc (gdbarch, hppa_read_pc); set_gdbarch_write_pc (gdbarch, hppa_write_pc); |