* regcache.c (write_pc_pid): Restore missing else.
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 21 Jun 2007 12:10:48 +0000 (12:10 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 21 Jun 2007 12:10:48 +0000 (12:10 +0000)
gdb/ChangeLog
gdb/regcache.c

index faa5f4a25fb4d175ea8ef3be85d43b117ea26db7..a32a2ca0a84362629c15da7fe7eb890f4dc0ed81 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-21  Andreas Schwab  <schwab@suse.de>
+
+       * regcache.c (write_pc_pid): Restore missing else.
+
 2007-06-20  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * regcache.c (regcache_print): Use get_current_regcache ()
index bea0b82336e172312e434be820d1f8829ae6e947..4e3dd8e1e77bac5c2347ec0f84111ef4039c373b 100644 (file)
@@ -867,7 +867,7 @@ write_pc_pid (CORE_ADDR pc, ptid_t ptid)
 
   if (gdbarch_write_pc_p (gdbarch))
     gdbarch_write_pc (gdbarch, regcache, pc);
-  if (gdbarch_pc_regnum (current_gdbarch) >= 0)
+  else if (gdbarch_pc_regnum (current_gdbarch) >= 0)
     regcache_cooked_write_unsigned (regcache,
                                    gdbarch_pc_regnum (current_gdbarch), pc);
   else