diff options
author | Jeff Law <law@redhat.com> | 1994-09-26 05:22:21 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-09-26 05:22:21 +0000 |
commit | 471fb8d8c06dc7ed4bf3bffdfdf0b3737a6ca387 (patch) | |
tree | 3c60ce8c52cdf45cb1d130d2293b9f8cd1fedf1c | |
parent | 0d9e139762cd9de90f59075f9c15610b9ebf4bca (diff) | |
download | gdb-471fb8d8c06dc7ed4bf3bffdfdf0b3737a6ca387.zip gdb-471fb8d8c06dc7ed4bf3bffdfdf0b3737a6ca387.tar.gz gdb-471fb8d8c06dc7ed4bf3bffdfdf0b3737a6ca387.tar.bz2 |
* hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
out of an interrupt frame.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 570a45c..f7af7bf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 3ff2b10..2ae92da 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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; |