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"
#include <unordered_map>
#include <string>
Go to the source code of this file.
Classes | |
struct | tdesc_parsing_data |
Macros | |
#define | MAX_FIELD_SIZE 65536 |
#define | MAX_FIELD_BITSIZE (MAX_FIELD_SIZE * TARGET_CHAR_BIT) |
#define | MAX_VECTOR_SIZE 65536 |
Functions | |
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, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_feature (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_reg (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_union (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_struct (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_flags (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_enum (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_field (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_enum_value (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static void | tdesc_start_vector (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes) |
static struct target_desc * | tdesc_parse_xml (const char *document, xml_fetch_another fetcher) |
const struct target_desc * | file_read_description_xml (const char *filename) |
static gdb::optional< gdb::char_vector > | fetch_available_features_from_target (const char *name, target_ops *ops) |
const struct target_desc * | target_read_description_xml (struct target_ops *ops) |
gdb::optional< std::string > | target_fetch_description_xml (struct target_ops *ops) |
const struct target_desc * | string_read_description_xml (const char *xml) |
Variables | |
static std::unordered_map< std::string, target_desc_up > | xml_cache |
static const struct gdb_xml_attribute | field_attributes [] |
static const struct gdb_xml_attribute | enum_value_attributes [] |
static const struct gdb_xml_element | struct_union_children [] |
static const struct gdb_xml_element | enum_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 | enum_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 [] |
#define MAX_FIELD_BITSIZE (MAX_FIELD_SIZE * TARGET_CHAR_BIT) |
Definition at line 35 of file xml-tdesc.c.
Referenced by tdesc_start_field().
#define MAX_FIELD_SIZE 65536 |
Definition at line 34 of file xml-tdesc.c.
Referenced by tdesc_start_enum(), tdesc_start_flags(), and tdesc_start_struct().
#define MAX_VECTOR_SIZE 65536 |
Definition at line 36 of file xml-tdesc.c.
Referenced by tdesc_start_vector().
|
static |
Definition at line 691 of file xml-tdesc.c.
References name, TARGET_OBJECT_AVAILABLE_FEATURES, and target_read_stralloc().
Referenced by target_fetch_description_xml(), and target_read_description_xml().
const struct target_desc * file_read_description_xml | ( | const char * | filename | ) |
Definition at line 664 of file xml-tdesc.c.
References ldirname(), name, tdesc_parse_xml(), and xml_fetch_content_from_file().
Referenced by maint_print_c_tdesc_cmd(), maint_print_xml_tdesc_cmd(), maintenance_check_xml_descriptions(), and target_find_description().
const struct target_desc * string_read_description_xml | ( | const char * | xml | ) |
Definition at line 763 of file xml-tdesc.c.
References tdesc_parse_xml().
Referenced by maintenance_check_tdesc_xml_convert(), and core_target::read_description().
gdb::optional< std::string > target_fetch_description_xml | ( | struct target_ops * | ops | ) |
Definition at line 725 of file xml-tdesc.c.
References fetch_available_features_from_target(), name, and xml_process_xincludes().
Referenced by tfile_write_tdesc().
const struct target_desc * target_read_description_xml | ( | struct target_ops * | ops | ) |
Definition at line 705 of file xml-tdesc.c.
References fetch_available_features_from_target(), name, and tdesc_parse_xml().
Referenced by target_find_description().
|
static |
Definition at line 95 of file xml-tdesc.c.
References gdb_xml_error(), and set_tdesc_architecture().
|
static |
Definition at line 130 of file xml-tdesc.c.
References tdesc_add_compatible().
|
static |
Definition at line 112 of file xml-tdesc.c.
References GDB_OSABI_UNKNOWN, osabi_from_tdesc_string(), and set_tdesc_osabi().
|
static |
Definition at line 619 of file xml-tdesc.c.
References allocate_target_description(), gdb_xml_parse_quick(), tdesc_elements, xml_cache, and xml_process_xincludes().
Referenced by file_read_description_xml(), string_read_description_xml(), and target_read_description_xml().
|
static |
Definition at line 291 of file xml-tdesc.c.
References attributes, gdb_xml_error(), MAX_FIELD_SIZE, size, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 444 of file xml-tdesc.c.
References attributes, field_name(), gdb_xml_error(), gdb_xml_value::value, value, and xml_find_attribute().
|
static |
Definition at line 160 of file xml-tdesc.c.
References attributes, name, tdesc_create_feature(), gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 315 of file xml-tdesc.c.
References attributes, field_name(), gdb_xml_error(), MAX_FIELD_BITSIZE, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 270 of file xml-tdesc.c.
References attributes, gdb_xml_error(), MAX_FIELD_SIZE, size, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 174 of file xml-tdesc.c.
References attributes, gdb_xml_error(), name, regnum, and type.
|
static |
Definition at line 240 of file xml-tdesc.c.
References attributes, gdb_xml_error(), MAX_FIELD_SIZE, size, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 144 of file xml-tdesc.c.
References attributes, gdb_xml_error(), gdb_xml_value::value, version, and xml_find_attribute().
|
static |
Definition at line 225 of file xml-tdesc.c.
References attributes, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 473 of file xml-tdesc.c.
References attributes, gdb_xml_error(), and MAX_VECTOR_SIZE.
|
static |
Definition at line 552 of file xml-tdesc.c.
|
static |
Definition at line 523 of file xml-tdesc.c.
|
static |
Definition at line 511 of file xml-tdesc.c.
|
static |
Definition at line 565 of file xml-tdesc.c.
|
static |
Definition at line 570 of file xml-tdesc.c.
|
static |
Definition at line 503 of file xml-tdesc.c.
|
static |
Definition at line 546 of file xml-tdesc.c.
|
static |
Definition at line 529 of file xml-tdesc.c.
|
static |
Definition at line 540 of file xml-tdesc.c.
|
static |
Definition at line 517 of file xml-tdesc.c.
|
static |
Definition at line 592 of file xml-tdesc.c.
|
static |
Definition at line 597 of file xml-tdesc.c.
|
static |
Definition at line 610 of file xml-tdesc.c.
Referenced by tdesc_parse_xml().
|
static |
Definition at line 558 of file xml-tdesc.c.
|
static |
Definition at line 68 of file xml-tdesc.c.
Referenced by tdesc_parse_xml().