From b17c7ab3808f5b781537514b28695dafaa29cb28 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 13 Apr 2022 06:42:19 -0600 Subject: 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. --- gdb/target.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gdb/target.h') 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 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, -- cgit v1.1