* hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
authorJeff Law <law@redhat.com>
Mon, 26 Sep 1994 05:22:21 +0000 (05:22 +0000)
committerJeff Law <law@redhat.com>
Mon, 26 Sep 1994 05:22:21 +0000 (05:22 +0000)
out of an interrupt frame.

gdb/ChangeLog
gdb/hppa-tdep.c

index 570a45c6fc4a66a65e2df266891e6930227a095f..f7af7bf8b8e4e3e4150b5eb1bb7173056b0c7d83 100644 (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
index 3ff2b10bb71911944c00a055f743c458293fb0d4..2ae92daef138bedcf8f2e54ec38a76a31f6d5b1b 100644 (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;