GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "vec.h"
#include "xml-support.h"
#include "osdata.h"
#include "gdb_string.h"
#include "ui-out.h"
#include "gdbcmd.h"
Go to the source code of this file.
Functions | |
struct osdata * | osdata_parse (const char *xml) |
static void | osdata_item_clear (struct osdata_item *item) |
void | osdata_free (struct osdata *osdata) |
static void | osdata_free_cleanup (void *arg) |
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) |
void | info_osdata_command (char *type, int from_tty) |
void | _initialize_osdata (void) |
Variables | |
initialize_file_ftype | _initialize_osdata |
void _initialize_osdata | ( | void | ) |
Definition at line 415 of file osdata.c.
References _, add_info(), and info_osdata_command().
struct osdata* get_osdata | ( | const char * | type | ) | [read] |
Definition at line 247 of file osdata.c.
References _, do_cleanups(), error(), make_cleanup(), osdata_parse(), target_get_osdata(), warning(), and xfree().
Referenced by info_osdata_command(), and list_available_thread_groups().
const char* get_osdata_column | ( | struct osdata_item * | item, |
const char * | name | ||
) |
Definition at line 276 of file osdata.c.
References osdata_column::name, osdata_column::value, and VEC_iterate.
Referenced by list_available_thread_groups().
void info_osdata_command | ( | char * | type, |
int | from_tty | ||
) |
Definition at line 292 of file osdata.c.
References _, current_uiout, do_cleanups(), error(), get_osdata(), make_cleanup_osdata_free(), make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), osdata_column::name, ui_left, ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_table_body(), ui_out_table_header(), ui_out_text(), osdata_column::value, VEC_empty, VEC_iterate, VEC_last, and VEC_length.
Referenced by _initialize_osdata(), and mi_cmd_info_os().
struct cleanup* make_cleanup_osdata_free | ( | struct osdata * | data | ) | [read] |
Definition at line 241 of file osdata.c.
References make_cleanup(), and osdata_free_cleanup().
Referenced by info_osdata_command(), and list_available_thread_groups().
void osdata_free | ( | struct osdata * | osdata | ) |
Definition at line 211 of file osdata.c.
References osdata_item_clear(), VEC_free, VEC_iterate, and xfree().
Referenced by osdata_free_cleanup().
static void osdata_free_cleanup | ( | void * | arg | ) | [static] |
Definition at line 233 of file osdata.c.
References osdata_free().
Referenced by make_cleanup_osdata_free().
static void osdata_item_clear | ( | struct osdata_item * | item | ) | [static] |
Definition at line 190 of file osdata.c.
References osdata_column::name, osdata_column::value, VEC_free, VEC_iterate, and xfree().
Referenced by osdata_free().
struct osdata* osdata_parse | ( | const char * | xml | ) | [read] |
Referenced by initialize_all_files().