diff options
author | Pedro Alves <palves@redhat.com> | 2008-12-02 15:52:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-12-02 15:52:15 +0000 |
commit | e0665bc852e60fc131ce6606e433102371f95f69 (patch) | |
tree | 7d71df915b225241c5f89a422817f42f0ebb4085 /gdb/target.h | |
parent | e0740f779c1471fbc565ceedae93dea09bc0eadf (diff) | |
download | gdb-e0665bc852e60fc131ce6606e433102371f95f69.zip gdb-e0665bc852e60fc131ce6606e433102371f95f69.tar.gz gdb-e0665bc852e60fc131ce6606e433102371f95f69.tar.bz2 |
* target.h (target_get_osdata): Describe.
* osdata.h (make_cleanup_osdata_free): Declare.
* osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
not defined.
(osdata_free_cleanup): New.
(make_cleanup_osdata_free): New.
(get_osdata): Fix leak.
(info_osdata_command): Use make_cleanup_osdata_free.
(info_processes_command): Delete.
(_initialize_osdata): Drop undocumented "info processes" alias.
* mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 6 |
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); |