From cfd77fa13ec760bb2f8bc653b29cade7f958bbf8 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 17 Jan 2006 14:11:16 +0000 Subject: * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte argument. (remote_fileio_func_open, remote_fileio_func_rename) (remote_fileio_func_unlink, remote_fileio_func_stat) (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) (remote_fileio_func_system): Cast the arguments to remote_read_bytes and remote_write_bytes. (remote_fileio_func_read, remote_fileio_func_write): Use a gdb_byte buffer. * remote.h (remote_read_bytes, remote_write_bytes): Update prototypes. * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument. (threadref_to_int): Replace bogus char * cast. (remote_unpack_thread_info_response): Use int for tag. (remote_threads_extra_info, remote_check_symbols): Cast string arguments to hex2bin. (remote_wait): Use a char buffer for packets and a gdb_byte buffer for registers. (remote_async_wait): Likewise. (remote_prepare_to_store, store_register_using_P) (remote_store_registers): Use gdb_byte buffers. (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer for MYADDR and char buffers for strings. (remote_xfer_partial): Add casts for string operations on READBUF. (remote_rcmd): Cast strings passed to bin2hex. --- gdb/remote.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/remote.h') diff --git a/gdb/remote.h b/gdb/remote.h index 65d2a1d..c457fc6 100644 --- a/gdb/remote.h +++ b/gdb/remote.h @@ -54,9 +54,9 @@ extern void remote_cisco_objfile_relocate (bfd_signed_vma text_off, extern void async_remote_interrupt_twice (void *arg); -extern int remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len); +extern int remote_write_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len); -extern int remote_read_bytes (CORE_ADDR memaddr, char *myaddr, int len); +extern int remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len); extern void (*deprecated_target_resume_hook) (void); extern void (*deprecated_target_wait_loop_hook) (void); -- cgit v1.1