summaryrefslogtreecommitdiff
path: root/gdb/target/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target/target.h')
-rw-r--r--gdb/target/target.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/target/target.h b/gdb/target/target.h
index 6ee0feeec0b..4c85fe019ed 100644
--- a/gdb/target/target.h
+++ b/gdb/target/target.h
@@ -70,4 +70,15 @@ extern void target_stop_and_wait (ptid_t ptid);
extern void target_continue_no_signal (ptid_t ptid);
+/* Read target file FILENAME, in the filesystem as seen by INF. If
+ INF is NULL, use the filesystem seen by the debugger (GDB or, for
+ remote targets, the remote stub). The result is NUL-terminated and
+ returned as a string, allocated using xmalloc. If an error occurs
+ or the transfer is unsupported, NULL is returned. Empty objects
+ are returned as allocated but empty strings. A warning is issued
+ if the result contains any embedded NUL bytes. */
+struct inferior;
+extern char *target_fileio_read_stralloc (struct inferior *inf,
+ const char *filename);
+
#endif /* TARGET_COMMON_H */