diff options
author | Michael Snyder <msnyder@specifix.com> | 2002-02-06 03:16:38 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2002-02-06 03:16:38 +0000 |
commit | 51d7c05b1f688ac0e221237be0dd84a5468453c5 (patch) | |
tree | c76c973eb69a43ee0f4df47300b7e2d0db3dc237 /gdb/regcache.c | |
parent | 283899efa89904188926930f0383922e91cc49fd (diff) | |
download | gdb-51d7c05b1f688ac0e221237be0dd84a5468453c5.tar.gz |
2002-02-05 Michael Snyder <msnyder@redhat.com>
* regcache.c (fetch_register): Call target_fetch_register
only if we don't call FETCH_PSEUDO_REGISTER.
(store_register): Call target_store_register only if we
don't call STORE_PSEUDO_REGISTER.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index ab72b8c03bf..28859045e5f 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -125,7 +125,8 @@ fetch_register (int regnum) if (FETCH_PSEUDO_REGISTER_P () && pseudo_register (regnum)) FETCH_PSEUDO_REGISTER (regnum); - target_fetch_registers (regnum); + else + target_fetch_registers (regnum); } /* Write register REGNUM cached value to the target. */ @@ -140,7 +141,8 @@ store_register (int regnum) if (STORE_PSEUDO_REGISTER_P () && pseudo_register (regnum)) STORE_PSEUDO_REGISTER (regnum); - target_store_registers (regnum); + else + target_store_registers (regnum); } /* Low level examining and depositing of registers. |