diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-12-02 07:57:38 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-12-02 07:57:38 +0000 |
commit | 07e059b5a9cbdeab8bf2980e07e79f892a2da854 (patch) | |
tree | 065ba2dfb548976f2d0691a8753a54d03148c1d5 /gdb/target.h | |
parent | f3c85de60aa06c1f075332c95fb2c32de79d50d3 (diff) | |
download | gdb-07e059b5a9cbdeab8bf2980e07e79f892a2da854.zip gdb-07e059b5a9cbdeab8bf2980e07e79f892a2da854.tar.gz gdb-07e059b5a9cbdeab8bf2980e07e79f892a2da854.tar.bz2 |
Implement -list-thread-groups --available
* Makefile.in (XMLFILES): Add osdata.dtd.
(SFILES): Add osdata.c.
(COMMON_OBS): Add osdata.o.
* linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
(linux_nat_xfer_osdata): New function.
(linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
* osdata.c: New file.
* osdata.h: New file.
* remote.c (PACKET_qXfer_osdata): New packet enum.
(remote_protocol_features): Add "qXfer:osdata:read".
(remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
(extended_remote_can_run): New.
(init_extended_remote_ops): Set to_can_run to
extended_remote_can_run.
(_initialize_remote): Add packet config command for
"qXfer:osdata:read".
* xml-support.c (obstack_xml_printf): New function.
* xml-support.h (obstack_xml_printf): Declare.
* target.c (target_get_osdata): New function.
* target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
(target_os_data): Declare.
* features/osdata.dtd: New file.
* mi/mi-main.c (mi_list_thread_groups): Handle the --available
option.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index 05b681d..65201eb 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -214,8 +214,11 @@ enum target_object See "target-descriptions.c". ANNEX should never be empty. */ TARGET_OBJECT_AVAILABLE_FEATURES, /* Currently loaded libraries, in XML format. */ - TARGET_OBJECT_LIBRARIES - /* Possible future objects: TARGET_OBJECT_FILE, TARGET_OBJECT_PROC, ... */ + TARGET_OBJECT_LIBRARIES, + /* Get OS specific data. The ANNEX specifies the type (running + processes, etc.). */ + TARGET_OBJECT_OSDATA + /* Possible future objects: TARGET_OBJECT_FILE, ... */ }; /* Request that OPS transfer up to LEN 8-bit bytes of the target's @@ -1283,6 +1286,8 @@ extern int target_resize_to_sections (struct target_ops *target, extern void remove_target_sections (bfd *abfd); +extern char *target_get_osdata (const char *type); + /* Stuff that should be shared among the various remote targets. */ |