GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions
xml-tdesc.c File Reference
#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.

Macros

#define MAX_FIELD_SIZE   65536
 
#define MAX_FIELD_BITSIZE   (MAX_FIELD_SIZE * TARGET_CHAR_BIT)
 
#define MAX_VECTOR_SIZE   65536
 

Functions

static struct target_desctdesc_parse_xml (const char *document, xml_fetch_another fetcher)
 
const struct target_descfile_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_desctarget_read_description_xml (struct target_ops *ops)
 
gdb::optional< std::string > target_fetch_description_xml (struct target_ops *ops)
 
const struct target_descstring_read_description_xml (const char *xml)
 

Macro Definition Documentation

◆ MAX_FIELD_BITSIZE

#define MAX_FIELD_BITSIZE   (MAX_FIELD_SIZE * TARGET_CHAR_BIT)

Definition at line 35 of file xml-tdesc.c.

◆ MAX_FIELD_SIZE

#define MAX_FIELD_SIZE   65536

Definition at line 34 of file xml-tdesc.c.

◆ MAX_VECTOR_SIZE

#define MAX_VECTOR_SIZE   65536

Definition at line 36 of file xml-tdesc.c.

Function Documentation

◆ fetch_available_features_from_target()

static gdb::optional< gdb::char_vector > fetch_available_features_from_target ( const char * name,
target_ops * ops )
static

◆ file_read_description_xml()

const struct target_desc * file_read_description_xml ( const char * filename)

◆ string_read_description_xml()

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().

◆ target_fetch_description_xml()

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().

◆ target_read_description_xml()

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().

◆ tdesc_parse_xml()

static struct target_desc * tdesc_parse_xml ( const char * document,
xml_fetch_another fetcher )
static