mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 12:24:19 +08:00
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.
This commit is contained in:
16
gdb/dcache.c
16
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++)
|
||||
|
Reference in New Issue
Block a user