* regcache.c (read_pc_pid): Restore inferior_ptid after reading
authorDaniel Jacobowitz <drow@false.org>
Sun, 29 Feb 2004 17:01:38 +0000 (17:01 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 29 Feb 2004 17:01:38 +0000 (17:01 +0000)
PC_REGNUM.

gdb/ChangeLog
gdb/regcache.c

index 0268a884f0cd3d912b6edb3f4e4fb83849346d01..f384d26ee88a3fb5895b7bee0ec5f807f3a8f4a9 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
+
+       * regcache.c (read_pc_pid): Restore inferior_ptid after reading
+       PC_REGNUM.
+
 2004-02-28  Andrew Cagney  <cagney@redhat.com>
 
        * NEWS: Refer to GDB 6.1.
index e479954296e06bedefc9b53e3387d9028d32b58c..154fc5e0c71c88b3a2ba016b051d29ba963f8762 100644 (file)
@@ -1332,8 +1332,7 @@ read_pc_pid (ptid_t ptid)
   else if (PC_REGNUM >= 0)
     {
       CORE_ADDR raw_val = read_register_pid (PC_REGNUM, ptid);
-      CORE_ADDR pc_val = ADDR_BITS_REMOVE (raw_val);
-      return pc_val;
+      pc_val = ADDR_BITS_REMOVE (raw_val);
     }
   else
     internal_error (__FILE__, __LINE__, "read_pc_pid: Unable to find PC");