summaryrefslogtreecommitdiff
path: root/gdb/gdbcore.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-06-15 06:28:09 -0600
committerTom Tromey <tromey@adacore.com>2020-06-15 06:28:09 -0600
commitf5272a3bb3928e8e45a122c19aa72a00a23a9d4d (patch)
tree99e7e7b4f363afdc8929b9557860af4bfed3f23a /gdb/gdbcore.h
parentff08abb8a2cdb449314b68ebc6ba8edf475fb415 (diff)
downloadbinutils-gdb-f5272a3bb3928e8e45a122c19aa72a00a23a9d4d.tar.gz
Remove read_memory_string
read_memory_string is redundant and only called in a couple of spots. This patch removes it in favor of target_read_string. gdb/ChangeLog 2020-06-15 Tom Tromey <tromey@adacore.com> * corefile.c (read_memory_string): Remove. * ada-valprint.c (ada_value_print_ptr): Update. * ada-lang.h (ada_tag_name): Change return type. * ada-lang.c (type_from_tag): Update. (ada_tag_name_from_tsd): Change return type. Use target_read_string. (ada_tag_name): Likewise. * gdbcore.h (read_memory_string): Don't declare.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r--gdb/gdbcore.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index 24db21e462c..58566d58785 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -87,12 +87,6 @@ extern ULONGEST read_code_unsigned_integer (CORE_ADDR memaddr,
int len,
enum bfd_endian byte_order);
-/* Read a null-terminated string from the debuggee's memory, given
- address, a buffer into which to place the string, and the maximum
- available space. */
-
-extern void read_memory_string (CORE_ADDR, char *, int);
-
/* Read the pointer of type TYPE at ADDR, and return the address it
represents. */