aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-29 17:01:38 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-29 17:01:38 +0000
commit6ba34a8d520d08d10e92d03ca5003b5618666f1e (patch)
treeb335fa2e2bcc0946b3f1f3070783fed24847480c /gdb/regcache.c
parent23b23974c756a3f1febd4261a0a3e0e044671446 (diff)
downloadgdb-6ba34a8d520d08d10e92d03ca5003b5618666f1e.zip
gdb-6ba34a8d520d08d10e92d03ca5003b5618666f1e.tar.gz
gdb-6ba34a8d520d08d10e92d03ca5003b5618666f1e.tar.bz2
* regcache.c (read_pc_pid): Restore inferior_ptid after reading
PC_REGNUM.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index e479954..154fc5e 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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");