* 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.
This commit is contained in:
Pedro Alves 2008-01-24 15:11:13 +00:00
parent 5240d12aa0
commit dd6be23411
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-24 Pedro Alves <pedro@codesourcery.com>
* 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 <dan@codesourcery.com>
* remote.c (remote_wait): Handle SIGINT between packets.

View File

@ -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);
}