aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-02-06 03:16:38 +0000
committerMichael Snyder <msnyder@vmware.com>2002-02-06 03:16:38 +0000
commit6af4589cb640e634712fdb8e9d1478d0d265173c (patch)
tree817d89da337130c0a26f0684244b73a5174ec250
parenta2cf933af419a80cd9bc59bd2bfa2a10d88e8a05 (diff)
downloadfsf-binutils-gdb-6af4589cb640e634712fdb8e9d1478d0d265173c.zip
fsf-binutils-gdb-6af4589cb640e634712fdb8e9d1478d0d265173c.tar.gz
fsf-binutils-gdb-6af4589cb640e634712fdb8e9d1478d0d265173c.tar.bz2
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.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/regcache.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f9e9ae0..97bc213 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2002-02-05 Elena Zannoni <ezannoni@redhat.com>
* gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
diff --git a/gdb/regcache.c b/gdb/regcache.c
index ab72b8c..2885904 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.