aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2007-01-25 20:17:26 +0000
committerPaul Brook <paul@codesourcery.com>2007-01-25 20:17:26 +0000
commite150acc7781b40a0932ac71d27d4f222f3b35513 (patch)
tree02902765ad3f33307d400df647c0f9d787256cb9 /gdb/arm-tdep.c
parent84f1d8266b1db6ef286fefdfb99f6e14b65967d3 (diff)
downloadgdb-e150acc7781b40a0932ac71d27d4f222f3b35513.zip
gdb-e150acc7781b40a0932ac71d27d4f222f3b35513.tar.gz
gdb-e150acc7781b40a0932ac71d27d4f222f3b35513.tar.bz2
2007-01-25 Paul Brook <paul@codesourcery.com>
gdb/ * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index ccee2f4..f254876 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1623,8 +1623,8 @@ arm_get_next_pc (CORE_ADDR pc)
error (_("Invalid update to pc in instruction"));
/* BX <reg>, BLX <reg> */
- if (bits (this_instr, 4, 28) == 0x12fff1
- || bits (this_instr, 4, 28) == 0x12fff3)
+ if (bits (this_instr, 4, 27) == 0x12fff1
+ || bits (this_instr, 4, 27) == 0x12fff3)
{
rn = bits (this_instr, 0, 3);
result = (rn == 15) ? pc_val + 8 : read_register (rn);