GDB (xrefs)
Loading...
Searching...
No Matches
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, std::vector< gdb_xml_value > &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, std::vector< gdb_xml_value > &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,
std::vector< gdb_xml_value > & attributes )
static

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

References attributes, gdb_xml_value::value, and xml_find_attribute().

◆ memory_map_start_property()

static void memory_map_start_property ( struct gdb_xml_parser * parser,
const struct gdb_xml_element * element,
void * user_data,
std::vector< gdb_xml_value > & attributes )
static

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

References attributes, name, gdb_xml_value::value, and xml_find_attribute().

◆ parse_memory_map()

std::vector< mem_region > parse_memory_map ( const char * 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:147
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest
@ GDB_XML_AF_NONE
gdb_xml_attribute_handler gdb_xml_parse_attr_enum

Definition at line 154 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, std::vector< gdb_xml_value > &attributes)
Definition memory-map.c:99
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:115
const struct gdb_xml_attribute property_attributes[]
Definition memory-map.c:135
@ GDB_XML_EF_NONE
@ GDB_XML_EF_REPEATABLE
@ GDB_XML_EF_OPTIONAL

Definition at line 140 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:154
const struct gdb_xml_element memory_children[]
Definition memory-map.c:140
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:83
static void memory_map_start_memory(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, std::vector< gdb_xml_value > &attributes)
Definition memory-map.c:59

Definition at line 161 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:161

Definition at line 167 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 }
}
@ MEM_FLASH
Definition memattr.h:31
@ MEM_RW
Definition memattr.h:26
@ MEM_RO
Definition memattr.h:27

Definition at line 147 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 135 of file memory-map.c.