GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "target-descriptions.h"
#include "xml-support.h"
#include "xml-tdesc.h"
#include "osabi.h"
#include "filenames.h"
Go to the source code of this file.
Classes | |
struct | tdesc_xml_cache |
Typedefs | |
typedef struct tdesc_xml_cache | tdesc_xml_cache_s |
Functions | |
DEF_VEC_O (tdesc_xml_cache_s) | |
static | VEC (tdesc_xml_cache_s) |
static void | tdesc_end_arch (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text) |
static void | tdesc_end_osabi (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text) |
static void | tdesc_end_compatible (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text) |
static void | tdesc_start_target (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_feature (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_reg (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_union (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_struct (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_flags (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_field (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static void | tdesc_start_vector (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes) |
static struct target_desc * | tdesc_parse_xml (const char *document, xml_fetch_another fetcher, void *fetcher_baton) |
const struct target_desc * | file_read_description_xml (const char *filename) |
static char * | fetch_available_features_from_target (const char *name, void *baton_) |
const struct target_desc * | target_read_description_xml (struct target_ops *ops) |
Variables | |
static const struct gdb_xml_attribute | field_attributes [] |
static const struct gdb_xml_element | struct_union_children [] |
static const struct gdb_xml_attribute | reg_attributes [] |
static const struct gdb_xml_attribute | struct_union_attributes [] |
static const struct gdb_xml_attribute | flags_attributes [] |
static const struct gdb_xml_attribute | vector_attributes [] |
static const struct gdb_xml_attribute | feature_attributes [] |
static const struct gdb_xml_element | feature_children [] |
static const struct gdb_xml_attribute | target_attributes [] |
static const struct gdb_xml_element | target_children [] |
static const struct gdb_xml_element | tdesc_elements [] |
typedef struct tdesc_xml_cache tdesc_xml_cache_s |
Definition at line 67 of file xml-tdesc.c.
DEF_VEC_O | ( | tdesc_xml_cache_s | ) |
|
static |
Definition at line 599 of file xml-tdesc.c.
References TARGET_OBJECT_AVAILABLE_FEATURES, and target_read_stralloc().
Referenced by target_read_description_xml().
const struct target_desc* file_read_description_xml | ( | const char * | filename | ) |
Definition at line 565 of file xml-tdesc.c.
References _, do_cleanups(), ldirname(), make_cleanup(), tdesc_parse_xml(), warning(), xfree(), and xml_fetch_content_from_file().
Referenced by target_find_description().
const struct target_desc* target_read_description_xml | ( | struct target_ops * | ops | ) |
Definition at line 615 of file xml-tdesc.c.
References do_cleanups(), fetch_available_features_from_target(), make_cleanup(), tdesc_parse_xml(), and xfree().
Referenced by target_find_description().
|
static |
Definition at line 100 of file xml-tdesc.c.
References _, gdb_xml_error(), and set_tdesc_architecture().
|
static |
Definition at line 135 of file xml-tdesc.c.
References tdesc_add_compatible().
|
static |
Definition at line 117 of file xml-tdesc.c.
References _, GDB_OSABI_UNKNOWN, osabi_from_tdesc_string(), set_tdesc_osabi(), and warning().
|
static |
Definition at line 503 of file xml-tdesc.c.
References _, allocate_target_description(), discard_cleanups(), do_cleanups(), gdb_xml_parse_quick(), make_cleanup(), make_cleanup_free_target_description(), null_cleanup(), tdesc_xml_cache::tdesc, VEC_iterate, VEC_safe_push, warning(), xfree(), tdesc_xml_cache::xml_document, and xml_process_xincludes().
Referenced by file_read_description_xml(), and target_read_description_xml().
|
static |
Definition at line 164 of file xml-tdesc.c.
References name, tdesc_create_feature(), gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 291 of file xml-tdesc.c.
References _, field_name(), gdb_xml_error(), if(), TARGET_CHAR_BIT, tdesc_add_bitfield(), tdesc_add_field(), tdesc_add_flag(), tdesc_named_type(), gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 270 of file xml-tdesc.c.
References int, tdesc_create_flags(), type, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 178 of file xml-tdesc.c.
References _, gdb_xml_error(), name, regnum, tdesc_create_reg(), tdesc_named_type(), type, gdb_xml_value::value, VEC_address, and VEC_length.
|
static |
Definition at line 245 of file xml-tdesc.c.
References int, size, tdesc_create_struct(), tdesc_set_struct_size(), type, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 149 of file xml-tdesc.c.
References _, gdb_xml_error(), gdb_xml_value::value, version, and xml_find_attribute().
|
static |
Definition at line 229 of file xml-tdesc.c.
References tdesc_create_union(), gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 384 of file xml-tdesc.c.
References _, tdesc_type::count, gdb_xml_error(), tdesc_create_vector(), tdesc_named_type(), gdb_xml_value::value, and VEC_address.
|
static |
Definition at line 70 of file xml-tdesc.c.
References current_type.
|
static |
Definition at line 452 of file xml-tdesc.c.
|
static |
Definition at line 457 of file xml-tdesc.c.
|
static |
Definition at line 408 of file xml-tdesc.c.
|
static |
Definition at line 439 of file xml-tdesc.c.
|
static |
Definition at line 422 of file xml-tdesc.c.
|
static |
Definition at line 433 of file xml-tdesc.c.
|
static |
Definition at line 416 of file xml-tdesc.c.
|
static |
Definition at line 476 of file xml-tdesc.c.
|
static |
Definition at line 481 of file xml-tdesc.c.
|
static |
Definition at line 494 of file xml-tdesc.c.
|
static |
Definition at line 445 of file xml-tdesc.c.