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 /gdb/hppa-tdep.c | |
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.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |