From dd6be23411f9494c8f4b4067e6047079cefc9630 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 24 Jan 2008 15:11:13 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9ab0df42a66..e2c24d4b243 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-24 Pedro Alves + + * 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. + 2008-01-23 Daniel Jacobowitz * remote.c (remote_wait): Handle SIGINT between packets. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 0a18e0ff128..b8b7c84e83e 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); } -- 2.30.2