aboutsummaryrefslogtreecommitdiff
path: root/gdb/dcache.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1996-01-25 21:01:17 +0000
committerSteve Chamberlain <sac@cygnus>1996-01-25 21:01:17 +0000
commita4b4479a477e66746d235b4a3c7e1ed747d941f4 (patch)
tree1547d2ff4eecbb249b02ee1786d1c5dff2a4bbbf /gdb/dcache.c
parent92849bae1d7513936c2169cef421c471e6d72978 (diff)
downloadgdb-a4b4479a477e66746d235b4a3c7e1ed747d941f4.zip
gdb-a4b4479a477e66746d235b4a3c7e1ed747d941f4.tar.gz
gdb-a4b4479a477e66746d235b4a3c7e1ed747d941f4.tar.bz2
Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
From Greg McGary <gkm@gnu.ai.mit.edu>: * dcache.c (dcache_peek, dcache_poke): Advance addr for multi-byte I/O.
Diffstat (limited to 'gdb/dcache.c')
-rw-r--r--gdb/dcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 9eec202..1e9a37d 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);