diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-04 11:55:36 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-04 11:55:36 +0000 |
commit | 181c1381a54475957d907a7d86948548e17b9c0f (patch) | |
tree | 72c065b37c11ca2d77853a62857bda0ff499ddaf /gdb/config/arm | |
parent | fa4ba8da6c28c972dd1b6b9971e29b51aabaafcc (diff) | |
download | gdb-181c1381a54475957d907a7d86948548e17b9c0f.zip gdb-181c1381a54475957d907a7d86948548e17b9c0f.tar.gz gdb-181c1381a54475957d907a7d86948548e17b9c0f.tar.bz2 |
* gdbarch.sh (copyright): Update years in generated header.
(SMASH_TEXT_ADDRESS): Add rule.
*gdbarch.h, gdbarch.c: Re-generate.
* coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
* dbxread.c: Likewise.
* dwarfread.c: Likewise.
* elfread.c: Likewise.
* somread.c: Likewise.
* arm-tdep.c (arm_smash_text_address): New function.
* config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
Diffstat (limited to 'gdb/config/arm')
-rw-r--r-- | gdb/config/arm/tm-arm.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/config/arm/tm-arm.h b/gdb/config/arm/tm-arm.h index 4a1648f..4f0f8d2 100644 --- a/gdb/config/arm/tm-arm.h +++ b/gdb/config/arm/tm-arm.h @@ -34,16 +34,11 @@ struct value; ? &floatformat_ieee_double_big \ : &floatformat_ieee_double_littlebyte_bigword) -/* When reading symbols, we need to zap the low bit of the address, - which may be set to 1 for Thumb functions. */ - -#define SMASH_TEXT_ADDRESS(addr) ((addr) &= ~0x1) - -/* Remove useless bits from addresses in a running program. */ +CORE_ADDR arm_smash_text_address(CORE_ADDR); +#define SMASH_TEXT_ADDRESS(ADDR) arm_smash_text_address (ADDR) CORE_ADDR arm_addr_bits_remove (CORE_ADDR); - -#define ADDR_BITS_REMOVE(val) (arm_addr_bits_remove (val)) +#define ADDR_BITS_REMOVE(VAL) arm_addr_bits_remove (VAL) /* Offset from address of function to start of its code. Zero on most machines. */ |