From a4b4479a477e66746d235b4a3c7e1ed747d941f4 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 25 Jan 1996 21:01:17 +0000 Subject: [PATCH] Thu Jan 25 09:22:15 1996 Steve Chamberlain From Greg McGary : * dcache.c (dcache_peek, dcache_poke): Advance addr for multi-byte I/O. --- gdb/ChangeLog | 6 ++++++ gdb/dcache.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e6a081f2e70..48672136728 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Jan 25 09:22:15 1996 Steve Chamberlain + + From Greg McGary : + * dcache.c (dcache_peek, dcache_poke): Advance addr for + multi-byte I/O. + Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com) * infrun.c (normal_stop): Fix test for shared library event. diff --git a/gdb/dcache.c b/gdb/dcache.c index 9eec2028959..1e9a37d8ce6 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -357,7 +357,7 @@ dcache_peek (dcache, addr, data) int i; for (i = 0; i < sizeof (int); i++) { - if (!dcache_peek_byte (dcache, addr, dp + i)) + if (!dcache_peek_byte (dcache, addr + i, dp + i)) return 0; } return 1; @@ -435,7 +435,7 @@ dcache_poke (dcache, addr, data) int i; for (i = 0; i < sizeof (int); i++) { - if (!dcache_poke_byte (dcache, addr, dp + i)) + if (!dcache_poke_byte (dcache, addr + i, dp + i)) return 0; } dcache_writeback (dcache); -- 2.30.2