2007-01-25 Paul Brook <paul@codesourcery.com>
gdb/ * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
This commit is contained in:
parent
84f1d8266b
commit
e150acc778
2 changed files with 6 additions and 2 deletions
|
@ -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>
|
2007-01-24 Jim Blandy <jimb@codesourcery.com>
|
||||||
|
|
||||||
* dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
|
* dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
|
||||||
|
|
|
@ -1623,8 +1623,8 @@ arm_get_next_pc (CORE_ADDR pc)
|
||||||
error (_("Invalid update to pc in instruction"));
|
error (_("Invalid update to pc in instruction"));
|
||||||
|
|
||||||
/* BX <reg>, BLX <reg> */
|
/* BX <reg>, BLX <reg> */
|
||||||
if (bits (this_instr, 4, 28) == 0x12fff1
|
if (bits (this_instr, 4, 27) == 0x12fff1
|
||||||
|| bits (this_instr, 4, 28) == 0x12fff3)
|
|| bits (this_instr, 4, 27) == 0x12fff3)
|
||||||
{
|
{
|
||||||
rn = bits (this_instr, 0, 3);
|
rn = bits (this_instr, 0, 3);
|
||||||
result = (rn == 15) ? pc_val + 8 : read_register (rn);
|
result = (rn == 15) ? pc_val + 8 : read_register (rn);
|
||||||
|
|
Loading…
Add table
Reference in a new issue