aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 65201eb..36dc14e 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1286,6 +1286,12 @@ extern int target_resize_to_sections (struct target_ops *target,
extern void remove_target_sections (bfd *abfd);
+/* Read OS data object of type TYPE from the target, and return it in
+ XML format. 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. */
+
extern char *target_get_osdata (const char *type);