diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-08-15 18:17:57 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-08-15 18:17:57 +0000 |
commit | b2182ed226dfa161296df892b2f12650d67c0ba0 (patch) | |
tree | 5d907980af3568b7fd9f52623e369db70826031b /gdb/remote.h | |
parent | 20de9fc8774ead2c9fb9954269c949b1ecb1e3f8 (diff) | |
download | gdb-b2182ed226dfa161296df892b2f12650d67c0ba0.zip gdb-b2182ed226dfa161296df892b2f12650d67c0ba0.tar.gz gdb-b2182ed226dfa161296df892b2f12650d67c0ba0.tar.bz2 |
* remote.c (remote_write_bytes): Take a const buffer argument.
Do the checks from remote_xfer_memory.
(remote_read_bytes): Do the checks from remote_xfer_memory.
(remote_xfer_memory): Remove checks pushed into lower level
functions.
(remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
directly.
* remote.h (remote_write_bytes): Update prototype.
Diffstat (limited to 'gdb/remote.h')
-rw-r--r-- | gdb/remote.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote.h b/gdb/remote.h index c715e58..fd84a91 100644 --- a/gdb/remote.h +++ b/gdb/remote.h @@ -55,7 +55,8 @@ 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, gdb_byte *myaddr, int len); +extern int remote_write_bytes (CORE_ADDR memaddr, const gdb_byte *myaddr, + int len); extern int remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len); |