aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbcore.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-27 20:09:10 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-27 20:09:10 +0000
commit10e2d419a3084f5ed32c340cd27a94a911f694b9 (patch)
treee42bd4f1f976040659e1f6da4f1402620ad6739a /gdb/gdbcore.h
parent89f5065b88a8015766444df05ee7bc44d7ac9192 (diff)
2005-01-27 Andrew Cagney <cagney@gnu.org>
* symfile-mem.c (do_target_read_memory): New function. (symbol_file_add_from_memory): Pass do_target_read_memory to bfd_elf_bfd_from_remote_memory. * corefile.c (write_memory): Update, make a copy of the read-only buffer. * target.c (target_read_memory): Update. (target_write_memory): Update, make a copy of the read-only buffer. * gdbcore.h (write_memory): Change buffer type to bfd_byte, make const. * target.h (target_read_memory, target_write_memory): Change buffer type to bfd_byte; for write_memory, make it const.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r--gdb/gdbcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index 248b16972c..d4e9a9d01e 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -86,7 +86,7 @@ CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type);
byteswapping, alignment, different sizes for host vs. target types,
etc. */
-extern void write_memory (CORE_ADDR memaddr, char *myaddr, int len);
+extern void write_memory (CORE_ADDR memaddr, const bfd_byte *myaddr, int len);
/* Store VALUE at ADDR in the inferior as a LEN-byte unsigned integer. */
extern void write_memory_unsigned_integer (CORE_ADDR addr, int len,