aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-06-17 18:18:57 +0000
committerDaniel Jacobowitz <drow@false.org>2003-06-17 18:18:57 +0000
commitcf0e1e0d0903094a2e359cfc7dcd8bd8cca53468 (patch)
tree2fb59b73ba0dcaf81c273b61d6cd26e334f11871 /gdb
parent89929b45cc9eb21a5841f3372fdbab89621e24be (diff)
downloadfsf-binutils-gdb-cf0e1e0d0903094a2e359cfc7dcd8bd8cca53468.zip
fsf-binutils-gdb-cf0e1e0d0903094a2e359cfc7dcd8bd8cca53468.tar.gz
fsf-binutils-gdb-cf0e1e0d0903094a2e359cfc7dcd8bd8cca53468.tar.bz2
* remote.c (remote_prepare_to_store): Replace call to
deprecated_read_register_bytes with multiple regcache_raw_read calls.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote.c13
2 files changed, 14 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ddc98c1..53df9e2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * remote.c (remote_prepare_to_store): Replace call to
+ deprecated_read_register_bytes with multiple regcache_raw_read
+ calls.
+
2003-06-17 Kris Warkentin <kewarken@qnx.com>
* i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
diff --git a/gdb/remote.c b/gdb/remote.c
index d5a5cf6..3de323b 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3532,16 +3532,19 @@ remote_fetch_registers (int regnum)
static void
remote_prepare_to_store (void)
{
+ struct remote_state *rs = get_remote_state ();
+ int i;
+ char buf[MAX_REGISTER_SIZE];
+
/* Make sure the entire registers array is valid. */
switch (remote_protocol_P.support)
{
case PACKET_DISABLE:
case PACKET_SUPPORT_UNKNOWN:
- /* NOTE: This isn't rs->sizeof_g_packet because here, we are
- forcing the register cache to read its and not the target
- registers. */
- deprecated_read_register_bytes (0, (char *) NULL,
- DEPRECATED_REGISTER_BYTES); /* OK */
+ /* Make sure all the necessary registers are cached. */
+ for (i = 0; i < NUM_REGS; i++)
+ if (rs->regs[i].in_g_packet)
+ regcache_raw_read (current_regcache, rs->regs[i].regnum, buf);
break;
case PACKET_ENABLE:
break;