GDB (API)
Classes | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/xml-support.h File Reference
#include "gdb_obstack.h"
#include "vec.h"
#include "xml-utils.h"

Go to the source code of this file.

Classes

struct  gdb_xml_value
struct  gdb_xml_attribute
struct  gdb_xml_element
struct  gdb_xml_enum

Typedefs

typedef char *(* xml_fetch_another )(const char *href, void *baton)
typedef struct gdb_xml_value gdb_xml_value_s
typedef void *( gdb_xml_attribute_handler )(struct gdb_xml_parser *parser, const struct gdb_xml_attribute *, const char *value)
typedef void( gdb_xml_element_start_handler )(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
typedef void( gdb_xml_element_end_handler )(struct gdb_xml_parser *, const struct gdb_xml_element *, void *user_data, const char *body_text)

Enumerations

enum  gdb_xml_attribute_flag { GDB_XML_AF_NONE, GDB_XML_AF_OPTIONAL = 1 << 0 }
enum  gdb_xml_element_flag { GDB_XML_EF_NONE, GDB_XML_EF_OPTIONAL = 1 << 0, GDB_XML_EF_REPEATABLE = 1 << 1 }

Functions

const char * fetch_xml_builtin (const char *filename)
LONGEST xml_builtin_xfer_partial (const char *filename, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
char * xml_process_xincludes (const char *name, const char *text, xml_fetch_another fetcher, void *fetcher_baton, int depth)
 DEF_VEC_O (gdb_xml_value_s)
void gdb_xml_use_dtd (struct gdb_xml_parser *parser, const char *dtd_name)
int gdb_xml_parse (struct gdb_xml_parser *parser, const char *buffer)
int gdb_xml_parse_quick (const char *name, const char *dtd_name, const struct gdb_xml_element *elements, const char *document, void *user_data)
void gdb_xml_debug (struct gdb_xml_parser *parser, const char *format,...) ATTRIBUTE_PRINTF(2
void void gdb_xml_error (struct gdb_xml_parser *parser, const char *format,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(2
void void struct gdb_xml_valuexml_find_attribute (VEC(gdb_xml_value_s)*attributes, const char *name)
ULONGEST gdb_xml_parse_ulongest (struct gdb_xml_parser *parser, const char *value)
void obstack_xml_printf (struct obstack *obstack, const char *format,...) ATTRIBUTE_PRINTF_2
char * xml_fetch_content_from_file (const char *filename, void *baton)

Variables

const char * xml_builtin [][2]
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest
struct gdb_xml_enum gdb_xml_enums_boolean []
gdb_xml_attribute_handler gdb_xml_parse_attr_enum

Typedef Documentation

typedef void*( gdb_xml_attribute_handler)(struct gdb_xml_parser *parser, const struct gdb_xml_attribute *, const char *value)

Definition at line 95 of file xml-support.h.

typedef void( gdb_xml_element_end_handler)(struct gdb_xml_parser *, const struct gdb_xml_element *, void *user_data, const char *body_text)

Definition at line 156 of file xml-support.h.

typedef void( gdb_xml_element_start_handler)(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)

Definition at line 146 of file xml-support.h.

Definition at line 78 of file xml-support.h.

typedef char*(* xml_fetch_another)(const char *href, void *baton)

Definition at line 55 of file xml-support.h.


Enumeration Type Documentation

Enumerator:
GDB_XML_AF_NONE 
GDB_XML_AF_OPTIONAL 

Definition at line 102 of file xml-support.h.

Enumerator:
GDB_XML_EF_NONE 
GDB_XML_EF_OPTIONAL 
GDB_XML_EF_REPEATABLE 

Definition at line 123 of file xml-support.h.


Function Documentation

const char* fetch_xml_builtin ( const char *  filename)

Definition at line 929 of file xml-support.c.

void gdb_xml_debug ( struct gdb_xml_parser *  parser,
const char *  format,
  ... 
)
void void gdb_xml_error ( struct gdb_xml_parser *  parser,
const char *  format,
  ... 
)
int gdb_xml_parse ( struct gdb_xml_parser *  parser,
const char *  buffer 
)
int gdb_xml_parse_quick ( const char *  name,
const char *  dtd_name,
const struct gdb_xml_element elements,
const char *  document,
void *  user_data 
)
ULONGEST gdb_xml_parse_ulongest ( struct gdb_xml_parser *  parser,
const char *  value 
)
void gdb_xml_use_dtd ( struct gdb_xml_parser *  parser,
const char *  dtd_name 
)
void obstack_xml_printf ( struct obstack *  obstack,
const char *  format,
  ... 
)

Definition at line 979 of file xml-support.c.

LONGEST xml_builtin_xfer_partial ( const char *  filename,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
LONGEST  len 
)

Definition at line 946 of file xml-support.c.

char* xml_fetch_content_from_file ( const char *  filename,
void *  baton 
)

Definition at line 1019 of file xml-support.c.

void void struct gdb_xml_value* xml_find_attribute ( VEC(gdb_xml_value_s)*  attributes,
const char *  name 
) [read]
char* xml_process_xincludes ( const char *  name,
const char *  text,
xml_fetch_another  fetcher,
void *  fetcher_baton,
int  depth 
)

Variable Documentation

const char* xml_builtin[][2]

Definition at line 746 of file xml-builtin.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines