diff options
author | Tom Tromey <tromey@adacore.com> | 2020-06-15 06:28:09 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-06-15 06:28:09 -0600 |
commit | f5272a3bb3928e8e45a122c19aa72a00a23a9d4d (patch) | |
tree | 99e7e7b4f363afdc8929b9557860af4bfed3f23a /gdb/gdbcore.h | |
parent | ff08abb8a2cdb449314b68ebc6ba8edf475fb415 (diff) | |
download | binutils-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.h | 6 |
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. */ |