diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-05-23 19:32:28 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-05-23 19:32:28 +0000 |
commit | 6c932e5455d4f45b18417f57c146bbff75fe34bf (patch) | |
tree | 3f86e79ca06925ba40c3d252bdbdd5b7f020809a /gdb/dcache.c | |
parent | 36aa5e41a20700ef558dc5d8362653ea1c8a4ec9 (diff) | |
download | gdb-6c932e5455d4f45b18417f57c146bbff75fe34bf.zip gdb-6c932e5455d4f45b18417f57c146bbff75fe34bf.tar.gz gdb-6c932e5455d4f45b18417f57c146bbff75fe34bf.tar.bz2 |
2005-05-23 Andrew Cagney <cagney@gnu.org>
* target.h (child_xfer_memory): Use gdb_byte for byte buffer
parameters.
* inftarg.c (child_xfer_partial): Update.
* wince.c (child_xfer_memory): Update.
* win32-nat.c (child_xfer_memory): Update.
* rs6000-nat.c (child_xfer_memory): Update.
* infptrace.c (child_xfer_memory): Update.
* dcache.c (struct dcache_block): Use gdb_byte for the byte
buffers.
(dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
(dcache_peek_byte, dcache_write_line): Ditto.
Diffstat (limited to 'gdb/dcache.c')
-rw-r--r-- | gdb/dcache.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gdb/dcache.c b/gdb/dcache.c index 72e9866..acfb6cd 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -124,7 +124,7 @@ struct dcache_block { struct dcache_block *p; /* next in list */ CORE_ADDR addr; /* Address for which data is recorded. */ - char data[LINE_SIZE]; /* bytes at given address */ + gdb_byte data[LINE_SIZE]; /* bytes at given address */ unsigned char state[LINE_SIZE]; /* what state the data is in */ /* whether anything in state is dirty - used to speed up the @@ -162,10 +162,6 @@ struct dcache_struct struct dcache_block *the_cache; }; -static int dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr); - -static int dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr); - static struct dcache_block *dcache_hit (DCACHE *dcache, CORE_ADDR addr); static int dcache_write_line (DCACHE *dcache, struct dcache_block *db); @@ -250,7 +246,7 @@ static int dcache_write_line (DCACHE *dcache, struct dcache_block *db) { CORE_ADDR memaddr; - char *myaddr; + gdb_byte *myaddr; int len; int res; int reg_len; @@ -331,7 +327,7 @@ static int dcache_read_line (DCACHE *dcache, struct dcache_block *db) { CORE_ADDR memaddr; - char *myaddr; + gdb_byte *myaddr; int len; int res; int reg_len; @@ -450,7 +446,7 @@ dcache_writeback (DCACHE *dcache) Returns 0 on error. */ static int -dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) +dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, gdb_byte *ptr) { struct dcache_block *db = dcache_hit (dcache, addr); @@ -477,7 +473,7 @@ dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) */ static int -dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) +dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, gdb_byte *ptr) { struct dcache_block *db = dcache_hit (dcache, addr); @@ -536,7 +532,7 @@ dcache_xfer_memory (DCACHE *dcache, CORE_ADDR memaddr, gdb_byte *myaddr, int len, int should_write) { int i; - int (*xfunc) (DCACHE *dcache, CORE_ADDR addr, char *ptr); + int (*xfunc) (DCACHE *dcache, CORE_ADDR addr, gdb_byte *ptr); xfunc = should_write ? dcache_poke_byte : dcache_peek_byte; for (i = 0; i < len; i++) |