* hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc

out of an interrupt frame.
This commit is contained in:
Jeff Law 1994-09-26 05:22:21 +00:00
parent 0d9e139762
commit 471fb8d8c0
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Sep 25 23:19:58 1994 Jeff Law (law@snake.cs.utah.edu)
* hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
out of an interrupt frame.
Sun Sep 25 12:50:17 1994 Stan Shebs (shebs@andros.cygnus.com)
* infcmd.c (do_registers_info) [INVALID_FLOAT]: Only use if

View File

@ -780,7 +780,7 @@ frame_saved_pc (frame)
fi = get_frame_info (frame->next);
get_frame_saved_regs (fi, &saved_regs);
if (read_memory_integer (saved_regs.regs[FLAGS_REGNUM] & 0x2, 4))
if (read_memory_integer (saved_regs.regs[FLAGS_REGNUM], 4) & 0x2)
pc = read_memory_integer (saved_regs.regs[31], 4) & ~0x3;
else
pc = read_memory_integer (saved_regs.regs[RP_REGNUM], 4) & ~0x3;
@ -807,7 +807,7 @@ restart:
fi = get_frame_info (frame->next);
get_frame_saved_regs (fi, &saved_regs);
if (read_memory_integer (saved_regs.regs[FLAGS_REGNUM] & 0x2, 4))
if (read_memory_integer (saved_regs.regs[FLAGS_REGNUM], 4) & 0x2)
pc = read_memory_integer (saved_regs.regs[31], 4) & ~0x3;
else
pc = read_memory_integer (saved_regs.regs[RP_REGNUM], 4) & ~0x3;