diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-09-04 17:52:38 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-09-04 17:52:38 +0000 |
commit | a3a2ee652b68ac797a532ce7c928300b18e4d28b (patch) | |
tree | 713ad38b0017222ea5726081cc7a59e4cfd4c340 /gdb/arm-tdep.c | |
parent | b782de161ee57c857fbff49d41ddffb3a93b714e (diff) | |
download | gdb-a3a2ee652b68ac797a532ce7c928300b18e4d28b.zip gdb-a3a2ee652b68ac797a532ce7c928300b18e4d28b.tar.gz gdb-a3a2ee652b68ac797a532ce7c928300b18e4d28b.tar.bz2 |
* arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
if arm_apcs_32 is false.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b896b68..fb1ac01 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -225,10 +225,10 @@ arm_pc_is_thumb_dummy (CORE_ADDR memaddr) static CORE_ADDR arm_addr_bits_remove (CORE_ADDR val) { - if (arm_pc_is_thumb (val)) - return (val & (arm_apcs_32 ? 0xfffffffe : 0x03fffffe)); + if (arm_apcs_32) + return (val & (arm_pc_is_thumb (val) ? 0xfffffffe : 0xfffffffc)); else - return (val & (arm_apcs_32 ? 0xfffffffc : 0x03fffffc)); + return (val & 0x03fffffc); } /* When reading symbols, we need to zap the low bit of the address, |