From: Andreas Schwab Date: Thu, 21 Jun 2007 12:10:48 +0000 (+0000) Subject: * regcache.c (write_pc_pid): Restore missing else. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ade28716408576549d6f1998d6baf0d2c5c74b91;p=binutils-gdb.git * regcache.c (write_pc_pid): Restore missing else. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index faa5f4a25fb..a32a2ca0a84 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-06-21 Andreas Schwab + + * regcache.c (write_pc_pid): Restore missing else. + 2007-06-20 Ulrich Weigand * regcache.c (regcache_print): Use get_current_regcache () diff --git a/gdb/regcache.c b/gdb/regcache.c index bea0b82336e..4e3dd8e1e77 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -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