aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-01-17 14:11:16 +0000
committerDaniel Jacobowitz <drow@false.org>2006-01-17 14:11:16 +0000
commitcfd77fa13ec760bb2f8bc653b29cade7f958bbf8 (patch)
tree179f0a342d546b5c3d6d2ab45e5c2e6113bddce8 /gdb/remote.h
parentb56cbdb94b9f12e392e093d736f3f151be7a264b (diff)
downloadfsf-binutils-gdb-cfd77fa13ec760bb2f8bc653b29cade7f958bbf8.zip
fsf-binutils-gdb-cfd77fa13ec760bb2f8bc653b29cade7f958bbf8.tar.gz
fsf-binutils-gdb-cfd77fa13ec760bb2f8bc653b29cade7f958bbf8.tar.bz2
* 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.
Diffstat (limited to 'gdb/remote.h')
-rw-r--r--gdb/remote.h4
1 files changed, 2 insertions, 2 deletions
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);