Implement -list-thread-groups --available
[deliverable/binutils-gdb.git] / gdb / target.c
index 3901ee7585b4bdb1c7372a4a355d9309f69a27a0..966ab7b1596439903d10f9d2c4a641ad7f49356b 100644 (file)
@@ -2224,6 +2224,26 @@ target_supports_non_stop ()
 }
 
 
+char *
+target_get_osdata (const char *type)
+{
+  char *document;
+  struct target_ops *t;
+
+  if (target_can_run (&current_target))
+    t = &current_target;
+  else
+    t = find_default_run_target ("get OS data");
+
+  if (!t)
+    return NULL;
+
+  document = target_read_stralloc (t,
+                                  TARGET_OBJECT_OSDATA,
+                                  type);
+  return document;
+}
+
 static int
 default_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
 {
This page took 0.027278 seconds and 4 git commands to generate.