From 6ca1b1476715499432ef8ea211fa0ea5c0e412c4 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 22 Aug 2012 19:47:58 +0000 Subject: * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc and blx pc. testsuite: * gdb.arch/thumb-bx-pc.S: New file. * gdb.arch/thumb-bx-pc.exp: New file. --- gdb/arm-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/arm-tdep.c') diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 063c1db..cddb88c 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -4540,7 +4540,7 @@ thumb_get_next_pc_raw (struct frame_info *frame, CORE_ADDR pc) else if ((inst1 & 0xff00) == 0x4700) /* bx REG, blx REG */ { if (bits (inst1, 3, 6) == 0x0f) - nextpc = pc_val; + nextpc = UNMAKE_THUMB_ADDR (pc_val); else nextpc = get_frame_register_unsigned (frame, bits (inst1, 3, 6)); } -- cgit v1.1