diff options
author | Daniel Jacobowitz <dan@debian.org> | 2004-02-29 17:01:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2004-02-29 17:01:38 +0000 |
commit | b7346fcda66fe250f38cdde6ad0ec891bf23c987 (patch) | |
tree | 0c05d8d6c92551ff76a93452ae70a2d65cf0576f /gdb/regcache.c | |
parent | 64f381742d798617ccb591795f82a280aaa868b3 (diff) | |
download | gdb-b7346fcda66fe250f38cdde6ad0ec891bf23c987.tar.gz |
* regcache.c (read_pc_pid): Restore inferior_ptid after reading
PC_REGNUM.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index e479954296e..154fc5e0c71 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"); |