GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/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)
 
static void clear_result (void *p)
 
 VEC (mem_region_s)
 

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

static void clear_result ( void *  p)
static

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

References VEC(), and VEC_free.

Referenced by VEC().

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
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
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
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

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

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

VEC ( mem_region_s  )

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

References _, clear_result(), discard_cleanups(), do_cleanups(), gdb_xml_parse_quick(), and make_cleanup().

Referenced by clear_result().

Variable Documentation

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_enum
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

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

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_end_property(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
Definition: memory-map.c:106
const struct gdb_xml_attribute property_attributes[]
Definition: memory-map.c:135
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:92

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

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:77
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:54

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

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.

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

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

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.