diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2007-06-21 12:10:48 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2007-06-21 12:10:48 +0000 |
commit | ade28716408576549d6f1998d6baf0d2c5c74b91 (patch) | |
tree | 21adee5fcf680d3911d2d83d60b631c4fe659f1b /gdb/regcache.c | |
parent | e9c17194070e6a49cc67a0c5642a9fd90ce5a075 (diff) | |
download | gdb-ade28716408576549d6f1998d6baf0d2c5c74b91.zip gdb-ade28716408576549d6f1998d6baf0d2c5c74b91.tar.gz gdb-ade28716408576549d6f1998d6baf0d2c5c74b91.tar.bz2 |
* regcache.c (write_pc_pid): Restore missing else.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index bea0b82..4e3dd8e 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 |