aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/arm-tdep.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b3790b8..49c1a89 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-25 Paul Brook <paul@codesourcery.com>
+
+ * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
+
2007-01-24 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
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);