GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "vec.h"
#include "xml-support.h"
#include "osdata.h"
#include "ui-out.h"
#include "gdbcmd.h"
Go to the source code of this file.
Classes | |
struct | osdata_parsing_data |
Functions | |
static void | osdata_start_osdata (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | osdata_start_item (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | osdata_start_column (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | osdata_end_column (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text) |
static void | clear_parsing_data (void *p) |
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 | |
const struct gdb_xml_attribute | column_attributes [] |
const struct gdb_xml_element | item_children [] |
const struct gdb_xml_attribute | osdata_attributes [] |
const struct gdb_xml_element | osdata_children [] |
const struct gdb_xml_element | osdata_elements [] |
initialize_file_ftype | _initialize_osdata |
void _initialize_osdata | ( | void | ) |
Definition at line 412 of file osdata.c.
References _, add_info(), and info_osdata_command().
|
static |
Definition at line 122 of file osdata.c.
References osdata_parsing_data::osdata, osdata_free(), osdata_parsing_data::property_name, and xfree().
Referenced by osdata_parse().
Definition at line 244 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 273 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 289 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().
Definition at line 238 of file osdata.c.
References make_cleanup(), and osdata_free_cleanup().
Referenced by info_osdata_command(), and list_available_thread_groups().
|
static |
Definition at line 103 of file osdata.c.
References osdata_column::name, osdata_parsing_data::osdata, osdata_parsing_data::property_name, osdata_column::value, VEC_last, and VEC_safe_push.
void osdata_free | ( | struct osdata * | osdata | ) |
Definition at line 208 of file osdata.c.
References osdata_item_clear(), VEC_free, VEC_iterate, and xfree().
Referenced by clear_parsing_data(), and osdata_free_cleanup().
|
static |
Definition at line 230 of file osdata.c.
References osdata_free().
Referenced by make_cleanup_osdata_free().
|
static |
Definition at line 187 of file osdata.c.
References osdata_column::name, osdata_column::value, VEC_free, VEC_iterate, and xfree().
Referenced by osdata_free().
Definition at line 166 of file osdata.c.
References _, clear_parsing_data(), discard_cleanups(), do_cleanups(), gdb_xml_parse_quick(), make_cleanup(), and osdata_parsing_data::osdata.
Referenced by get_osdata().
|
static |
Definition at line 90 of file osdata.c.
References name, osdata_parsing_data::property_name, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 77 of file osdata.c.
References osdata_parsing_data::osdata, and VEC_safe_push.
|
static |
Definition at line 57 of file osdata.c.
References _, gdb_xml_error(), osdata_parsing_data::osdata, osdata::type, type, gdb_xml_value::value, and xml_find_attribute().
initialize_file_ftype _initialize_osdata |
const struct gdb_xml_attribute column_attributes[] |
const struct gdb_xml_element item_children[] |
const struct gdb_xml_attribute osdata_attributes[] |
const struct gdb_xml_element osdata_children[] |
const struct gdb_xml_element osdata_elements[] |