aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-01-24 15:11:13 +0000
committerPedro Alves <palves@redhat.com>2008-01-24 15:11:13 +0000
commitdd6be23411f9494c8f4b4067e6047079cefc9630 (patch)
tree8241d4deaec99a37ffa7ab9735e31bd7f3d3377f /gdb/arm-tdep.c
parent5240d12aa0e73466bccf3e6d43ee846977644306 (diff)
downloadgdb-dd6be23411f9494c8f4b4067e6047079cefc9630.zip
gdb-dd6be23411f9494c8f4b4067e6047079cefc9630.tar.gz
gdb-dd6be23411f9494c8f4b4067e6047079cefc9630.tar.bz2
* arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
strip bit 1 even if pc doesn't point to thumb code.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 0a18e0f..b8b7c84 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -240,7 +240,7 @@ static CORE_ADDR
arm_addr_bits_remove (CORE_ADDR val)
{
if (arm_apcs_32)
- return (val & (arm_pc_is_thumb (val) ? 0xfffffffe : 0xfffffffc));
+ return UNMAKE_THUMB_ADDR (val);
else
return (val & 0x03fffffc);
}