From d4b2399a9c2702d7b6ed31df1187fd7eef4e0ffb Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Sat, 20 May 2000 10:29:51 +0000 Subject: * target.h (target_memory_bfd_section): Removed declaration. * target.c (target_memory_bfd_section): Removed. * exec.c (xfer_memory): Removed #if'ed-out code which referenced target_memory_bfd_section. * target.h (target_read_memory_section): Removed declaration. * target.c (target_read_memory_section): Removed. (target_xfer_memory): Update, removed bfd_section argument. (target_read_string, target_read_memory, target_write_memory): Update for above change. * gdbcore.h (read_memory_section): Removed declaration. * corefile.c (read_memory_section): Removed. * jv-lang.c (get_java_utf8_name): Changed calls to read_memory_section to read_memory. * printcmd.c (printf_command): Likewise. * valops.c (value_at, value_fetch_lazy): Likewise. --- gdb/printcmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index d9c3b24..7ad2dd0 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2319,15 +2319,14 @@ printf_command (arg, from_tty) { char c; QUIT; - read_memory_section (tem + j, &c, 1, - VALUE_BFD_SECTION (val_args[i])); + read_memory (tem + j, &c, 1); if (c == 0) break; } /* Copy the string contents into a string inside GDB. */ str = (char *) alloca (j + 1); - read_memory_section (tem, str, j, VALUE_BFD_SECTION (val_args[i])); + read_memory (tem, str, j); str[j] = 0; printf_filtered (current_substring, str); -- cgit v1.1