GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-8.1/gdb/memory-map.c File Reference
#include "defs.h"
#include "memory-map.h"
#include "xml-support.h"

Go to the source code of this file.

Classes

struct  memory_map_parsing_data
 

Functions

static void memory_map_start_memory (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes)
 
static void memory_map_end_memory (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
 
static void memory_map_start_property (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes)
 
static void memory_map_end_property (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
 
std::vector< mem_regionparse_memory_map (const char *memory_map)
 

Variables

const struct gdb_xml_attribute property_attributes []
 
const struct gdb_xml_element memory_children []
 
const struct gdb_xml_enum memory_type_enum []
 
const struct gdb_xml_attribute memory_attributes []
 
const struct gdb_xml_element memory_map_children []
 
const struct gdb_xml_element memory_map_elements []
 

Function Documentation

◆ memory_map_end_memory()

static void memory_map_end_memory ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
const char *  body_text 
)
static

◆ memory_map_end_property()

static void memory_map_end_property ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
const char *  body_text 
)
static

◆ memory_map_start_memory()

static void memory_map_start_memory ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s) *  attributes 
)
static

◆ memory_map_start_property()

static void memory_map_start_property ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s) *  attributes 
)
static

◆ parse_memory_map()

std::vector<mem_region> parse_memory_map ( const char *  memory_map)

Definition at line 172 of file memory-map.c.

References _, gdb_xml_parse_quick(), and memory_map_elements.

Referenced by remote_memory_map().

Variable Documentation

◆ memory_attributes

const struct gdb_xml_attribute memory_attributes[]
Initial value:
= {
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
const struct gdb_xml_enum memory_type_enum[]
Definition: memory-map.c:145
gdb_xml_attribute_handler gdb_xml_parse_attr_enum
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 152 of file memory-map.c.

◆ memory_children

const struct gdb_xml_element memory_children[]
Initial value:
= {
{ "property", property_attributes, NULL,
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static void memory_map_start_property(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes)
Definition: memory-map.c:98
static void memory_map_end_property(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
Definition: memory-map.c:113
const struct gdb_xml_attribute property_attributes[]
Definition: memory-map.c:133

Definition at line 138 of file memory-map.c.

◆ memory_map_children

const struct gdb_xml_element memory_map_children[]
Initial value:
= {
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
const struct gdb_xml_attribute memory_attributes[]
Definition: memory-map.c:152
const struct gdb_xml_element memory_children[]
Definition: memory-map.c:138
static void memory_map_end_memory(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
Definition: memory-map.c:82
static void memory_map_start_memory(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes)
Definition: memory-map.c:59

Definition at line 159 of file memory-map.c.

◆ memory_map_elements

const struct gdb_xml_element memory_map_elements[]
Initial value:
= {
{ "memory-map", NULL, memory_map_children, GDB_XML_EF_NONE,
NULL, NULL },
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
const struct gdb_xml_element memory_map_children[]
Definition: memory-map.c:159

Definition at line 165 of file memory-map.c.

Referenced by parse_memory_map().

◆ memory_type_enum

const struct gdb_xml_enum memory_type_enum[]
Initial value:
= {
{ "ram", MEM_RW },
{ "rom", MEM_RO },
{ "flash", MEM_FLASH },
{ NULL, 0 }
}
Definition: memattr.h:27
Definition: memattr.h:26

Definition at line 145 of file memory-map.c.

◆ property_attributes

const struct gdb_xml_attribute property_attributes[]
Initial value:
= {
{ "name", GDB_XML_AF_NONE, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}

Definition at line 133 of file memory-map.c.