aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-13 06:42:19 -0600
committerTom Tromey <tromey@adacore.com>2022-04-14 12:12:34 -0600
commitb17c7ab3808f5b781537514b28695dafaa29cb28 (patch)
tree4d542aeb0071db24f24d08333ab99198ad4b0cf6 /gdb/target.h
parent9da74023eb9378315d6b7e1bae02f52cfecc8bd1 (diff)
downloadgdb-b17c7ab3808f5b781537514b28695dafaa29cb28.zip
gdb-b17c7ab3808f5b781537514b28695dafaa29cb28.tar.gz
gdb-b17c7ab3808f5b781537514b28695dafaa29cb28.tar.bz2
Move target_read_string to target/target.c
This moves the two overloads of target_read_string to a new file, target/target.c, and updates both gdb and gdbserver to build this.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/target.h b/gdb/target.h
index c9791e8..093178a 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1567,14 +1567,6 @@ extern void target_dumpcore (const char *filename);
extern bool target_can_run_breakpoint_commands ();
-/* Read a string from target memory at address MEMADDR. The string
- will be at most LEN bytes long (note that excess bytes may be read
- in some cases -- but these will not be returned). Returns nullptr
- on error. */
-
-extern gdb::unique_xmalloc_ptr<char> target_read_string
- (CORE_ADDR memaddr, int len, int *bytes_read = nullptr);
-
/* For target_read_memory see target/target.h. */
extern int target_read_raw_memory (CORE_ADDR memaddr, gdb_byte *myaddr,