mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
* hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
out of an interrupt frame.
This commit is contained in:
parent
0d9e139762
commit
471fb8d8c0
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user