aboutsummaryrefslogtreecommitdiff
path: root/gdb/osdata.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-12-02 15:52:15 +0000
committerPedro Alves <palves@redhat.com>2008-12-02 15:52:15 +0000
commite0665bc852e60fc131ce6606e433102371f95f69 (patch)
tree7d71df915b225241c5f89a422817f42f0ebb4085 /gdb/osdata.h
parente0740f779c1471fbc565ceedae93dea09bc0eadf (diff)
downloadgdb-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/osdata.h')
-rw-r--r--gdb/osdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/osdata.h b/gdb/osdata.h
index a48dca2..879285c 100644
--- a/gdb/osdata.h
+++ b/gdb/osdata.h
@@ -46,6 +46,7 @@ DEF_VEC_P(osdata_p);
struct osdata *osdata_parse (const char *xml);
void osdata_free (struct osdata *);
+struct cleanup *make_cleanup_osdata_free (struct osdata *data);
struct osdata *get_osdata (const char *type);
const char *get_osdata_column (struct osdata_item *item, const char *name);