From 471fb8d8c06dc7ed4bf3bffdfdf0b3737a6ca387 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 26 Sep 1994 05:22:21 +0000 Subject: [PATCH] * hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc out of an interrupt frame. --- gdb/ChangeLog | 5 +++++ gdb/hppa-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 570a45c6fc4..f7af7bf8b8e 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 3ff2b10bb71..2ae92daef13 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; -- 2.30.2