GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/btrace.c File Reference
#include "defs.h"
#include "btrace.h"
#include "gdbthread.h"
#include "inferior.h"
#include "target.h"
#include "record.h"
#include "symtab.h"
#include "disasm.h"
#include "source.h"
#include "filenames.h"
#include "xml-support.h"
#include "regcache.h"
#include "rsp-low.h"
#include "gdbcmd.h"
#include "cli/cli-utils.h"
#include <inttypes.h>
#include <ctype.h>

Go to the source code of this file.

Macros

#define DEBUG(msg, args...)
 
#define DEBUG_FTRACE(msg, args...)   DEBUG ("[ftrace] " msg, ##args)
 

Functions

static void btrace_add_pc (struct thread_info *tp)
 
static const char * ftrace_print_function_name (const struct btrace_function *bfun)
 
static const char * ftrace_print_filename (const struct btrace_function *bfun)
 
static const char * ftrace_print_insn_addr (const struct btrace_insn *insn)
 
static void ftrace_debug (const struct btrace_function *bfun, const char *prefix)
 
static int ftrace_function_switched (const struct btrace_function *bfun, const struct minimal_symbol *mfun, const struct symbol *fun)
 
static struct btrace_functionftrace_new_function (struct btrace_function *prev, struct minimal_symbol *mfun, struct symbol *fun)
 
static void ftrace_update_caller (struct btrace_function *bfun, struct btrace_function *caller, enum btrace_function_flag flags)
 
static void ftrace_fixup_caller (struct btrace_function *bfun, struct btrace_function *caller, enum btrace_function_flag flags)
 
static struct btrace_functionftrace_new_call (struct btrace_function *caller, struct minimal_symbol *mfun, struct symbol *fun)
 
static struct btrace_functionftrace_new_tailcall (struct btrace_function *caller, struct minimal_symbol *mfun, struct symbol *fun)
 
static struct btrace_functionftrace_find_caller (struct btrace_function *bfun, struct minimal_symbol *mfun, struct symbol *fun)
 
static struct btrace_functionftrace_find_call (struct btrace_function *bfun)
 
static struct btrace_functionftrace_new_return (struct btrace_function *prev, struct minimal_symbol *mfun, struct symbol *fun)
 
static struct btrace_functionftrace_new_switch (struct btrace_function *prev, struct minimal_symbol *mfun, struct symbol *fun)
 
static struct btrace_functionftrace_new_gap (struct btrace_function *prev, int errcode)
 
static struct btrace_functionftrace_update_function (struct btrace_function *bfun, CORE_ADDR pc)
 
static void ftrace_update_insns (struct btrace_function *bfun, const struct btrace_insn *insn)
 
static enum btrace_insn_class ftrace_classify_insn (struct gdbarch *gdbarch, CORE_ADDR pc)
 
static void btrace_compute_ftrace_bts (struct thread_info *tp, const struct btrace_data_bts *btrace)
 
static void btrace_compute_ftrace_pt (struct thread_info *tp, const struct btrace_data_pt *btrace)
 
static void btrace_compute_ftrace (struct thread_info *tp, struct btrace_data *btrace)
 
void btrace_enable (struct thread_info *tp, const struct btrace_config *conf)
 
const struct btrace_configbtrace_conf (const struct btrace_thread_info *btinfo)
 
void btrace_disable (struct thread_info *tp)
 
void btrace_teardown (struct thread_info *tp)
 
static int btrace_stitch_bts (struct btrace_data_bts *btrace, struct thread_info *tp)
 
static int btrace_stitch_trace (struct btrace_data *btrace, struct thread_info *tp)
 
static void btrace_clear_history (struct btrace_thread_info *btinfo)
 
static void btrace_maint_clear (struct btrace_thread_info *btinfo)
 
void btrace_fetch (struct thread_info *tp)
 
void btrace_clear (struct thread_info *tp)
 
void btrace_free_objfile (struct objfile *objfile)
 
static void check_xml_btrace_version (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
static void parse_xml_btrace_block (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
static void parse_xml_raw (struct gdb_xml_parser *parser, const char *body_text, gdb_byte **pdata, unsigned long *psize)
 
static void parse_xml_btrace_pt_config_cpu (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
static void parse_xml_btrace_pt_raw (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
 
static void parse_xml_btrace_pt (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
void parse_xml_btrace (struct btrace_data *btrace, const char *buffer)
 
static void parse_xml_btrace_conf_bts (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
static void parse_xml_btrace_conf_pt (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
void parse_xml_btrace_conf (struct btrace_config *conf, const char *xml)
 
const struct btrace_insnbtrace_insn_get (const struct btrace_insn_iterator *it)
 
unsigned int btrace_insn_number (const struct btrace_insn_iterator *it)
 
void btrace_insn_begin (struct btrace_insn_iterator *it, const struct btrace_thread_info *btinfo)
 
void btrace_insn_end (struct btrace_insn_iterator *it, const struct btrace_thread_info *btinfo)
 
unsigned int btrace_insn_next (struct btrace_insn_iterator *it, unsigned int stride)
 
unsigned int btrace_insn_prev (struct btrace_insn_iterator *it, unsigned int stride)
 
int btrace_insn_cmp (const struct btrace_insn_iterator *lhs, const struct btrace_insn_iterator *rhs)
 
int btrace_find_insn_by_number (struct btrace_insn_iterator *it, const struct btrace_thread_info *btinfo, unsigned int number)
 
const struct btrace_functionbtrace_call_get (const struct btrace_call_iterator *it)
 
unsigned int btrace_call_number (const struct btrace_call_iterator *it)
 
void btrace_call_begin (struct btrace_call_iterator *it, const struct btrace_thread_info *btinfo)
 
void btrace_call_end (struct btrace_call_iterator *it, const struct btrace_thread_info *btinfo)
 
unsigned int btrace_call_next (struct btrace_call_iterator *it, unsigned int stride)
 
unsigned int btrace_call_prev (struct btrace_call_iterator *it, unsigned int stride)
 
int btrace_call_cmp (const struct btrace_call_iterator *lhs, const struct btrace_call_iterator *rhs)
 
int btrace_find_call_by_number (struct btrace_call_iterator *it, const struct btrace_thread_info *btinfo, unsigned int number)
 
void btrace_set_insn_history (struct btrace_thread_info *btinfo, const struct btrace_insn_iterator *begin, const struct btrace_insn_iterator *end)
 
void btrace_set_call_history (struct btrace_thread_info *btinfo, const struct btrace_call_iterator *begin, const struct btrace_call_iterator *end)
 
int btrace_is_replaying (struct thread_info *tp)
 
int btrace_is_empty (struct thread_info *tp)
 
static void do_btrace_data_cleanup (void *arg)
 
struct cleanupmake_cleanup_btrace_data (struct btrace_data *data)
 
static void btrace_maint_update_packets (struct btrace_thread_info *btinfo, unsigned int *begin, unsigned int *end, unsigned int *from, unsigned int *to)
 
static void btrace_maint_print_packets (struct btrace_thread_info *btinfo, unsigned int begin, unsigned int end)
 
static unsigned int get_uint (char **arg)
 
static int get_context_size (char **arg)
 
static void no_chunk (char *arg)
 
static void maint_btrace_packet_history_cmd (char *arg, int from_tty)
 
static void maint_btrace_clear_packet_history_cmd (char *args, int from_tty)
 
static void maint_btrace_clear_cmd (char *args, int from_tty)
 
static void maint_btrace_cmd (char *args, int from_tty)
 
static void maint_btrace_set_cmd (char *args, int from_tty)
 
static void maint_btrace_show_cmd (char *args, int from_tty)
 
static void maint_btrace_pt_set_cmd (char *args, int from_tty)
 
static void maint_btrace_pt_show_cmd (char *args, int from_tty)
 
static void maint_info_btrace_cmd (char *args, int from_tty)
 
static void show_maint_btrace_pt_skip_pad (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void _initialize_btrace (void)
 

Variables

static struct cmd_list_elementmaint_btrace_cmdlist
 
static struct cmd_list_elementmaint_btrace_set_cmdlist
 
static struct cmd_list_elementmaint_btrace_show_cmdlist
 
static struct cmd_list_elementmaint_btrace_pt_set_cmdlist
 
static struct cmd_list_elementmaint_btrace_pt_show_cmdlist
 
static int maint_btrace_pt_skip_pad = 1
 
static const struct gdb_xml_attribute block_attributes []
 
static const struct gdb_xml_attribute btrace_pt_config_cpu_attributes []
 
static const struct gdb_xml_element btrace_pt_config_children []
 
static const struct gdb_xml_element btrace_pt_children []
 
static const struct gdb_xml_attribute btrace_attributes []
 
static const struct gdb_xml_element btrace_children []
 
static const struct gdb_xml_element btrace_elements []
 
static const struct gdb_xml_attribute btrace_conf_pt_attributes []
 
static const struct gdb_xml_attribute btrace_conf_bts_attributes []
 
static const struct gdb_xml_element btrace_conf_children []
 
static const struct gdb_xml_attribute btrace_conf_attributes []
 
static const struct gdb_xml_element btrace_conf_elements []
 

Macro Definition Documentation

#define DEBUG (   msg,
  args... 
)
Value:
do \
{ \
if (record_debug != 0) \
fprintf_unfiltered (gdb_stdlog, \
"[btrace] " msg "\n", ##args); \
} \
while (0)
unsigned int record_debug
Definition: record.c:33
struct ui_file * gdb_stdlog
Definition: main.c:73

Definition at line 56 of file btrace.c.

Referenced by btrace_clear(), btrace_compute_ftrace(), btrace_disable(), btrace_enable(), btrace_fetch(), btrace_free_objfile(), btrace_stitch_bts(), and btrace_teardown().

#define DEBUG_FTRACE (   msg,
  args... 
)    DEBUG ("[ftrace] " msg, ##args)

Definition at line 65 of file btrace.c.

Referenced by ftrace_debug(), and ftrace_update_function().

Function Documentation

void _initialize_btrace ( void  )
static void btrace_add_pc ( struct thread_info tp)
static
void btrace_call_begin ( struct btrace_call_iterator it,
const struct btrace_thread_info btinfo 
)
int btrace_call_cmp ( const struct btrace_call_iterator lhs,
const struct btrace_call_iterator rhs 
)

Definition at line 2137 of file btrace.c.

References btrace_call_number().

Referenced by btrace_call_history().

void btrace_call_end ( struct btrace_call_iterator it,
const struct btrace_thread_info btinfo 
)
const struct btrace_function* btrace_call_get ( const struct btrace_call_iterator it)

Definition at line 1983 of file btrace.c.

References btrace_call_iterator::function.

Referenced by btrace_call_history().

unsigned int btrace_call_next ( struct btrace_call_iterator it,
unsigned int  stride 
)
unsigned int btrace_call_number ( const struct btrace_call_iterator it)
unsigned int btrace_call_prev ( struct btrace_call_iterator it,
unsigned int  stride 
)
void btrace_clear ( struct thread_info tp)
static void btrace_clear_history ( struct btrace_thread_info btinfo)
static
static void btrace_compute_ftrace ( struct thread_info tp,
struct btrace_data btrace 
)
static
static void btrace_compute_ftrace_bts ( struct thread_info tp,
const struct btrace_data_bts btrace 
)
static
static void btrace_compute_ftrace_pt ( struct thread_info tp,
const struct btrace_data_pt btrace 
)
static

Definition at line 953 of file btrace.c.

References _, and internal_error().

Referenced by btrace_compute_ftrace().

const struct btrace_config* btrace_conf ( const struct btrace_thread_info btinfo)
void btrace_disable ( struct thread_info tp)
void btrace_enable ( struct thread_info tp,
const struct btrace_config conf 
)
void btrace_fetch ( struct thread_info tp)
int btrace_find_call_by_number ( struct btrace_call_iterator it,
const struct btrace_thread_info btinfo,
unsigned int  number 
)
int btrace_find_insn_by_number ( struct btrace_insn_iterator it,
const struct btrace_thread_info btinfo,
unsigned int  number 
)
void btrace_free_objfile ( struct objfile objfile)

Definition at line 1353 of file btrace.c.

References ALL_NON_EXITED_THREADS, btrace_clear(), and DEBUG.

Referenced by free_objfile().

void btrace_insn_begin ( struct btrace_insn_iterator it,
const struct btrace_thread_info btinfo 
)
int btrace_insn_cmp ( const struct btrace_insn_iterator lhs,
const struct btrace_insn_iterator rhs 
)
void btrace_insn_end ( struct btrace_insn_iterator it,
const struct btrace_thread_info btinfo 
)
const struct btrace_insn* btrace_insn_get ( const struct btrace_insn_iterator it)
unsigned int btrace_insn_next ( struct btrace_insn_iterator it,
unsigned int  stride 
)
unsigned int btrace_insn_number ( const struct btrace_insn_iterator it)
unsigned int btrace_insn_prev ( struct btrace_insn_iterator it,
unsigned int  stride 
)
int btrace_is_empty ( struct thread_info tp)
int btrace_is_replaying ( struct thread_info tp)
static void btrace_maint_clear ( struct btrace_thread_info btinfo)
static
static void btrace_maint_print_packets ( struct btrace_thread_info btinfo,
unsigned int  begin,
unsigned int  end 
)
static
static void btrace_maint_update_packets ( struct btrace_thread_info btinfo,
unsigned int begin,
unsigned int end,
unsigned int from,
unsigned int to 
)
static
void btrace_set_call_history ( struct btrace_thread_info btinfo,
const struct btrace_call_iterator begin,
const struct btrace_call_iterator end 
)
void btrace_set_insn_history ( struct btrace_thread_info btinfo,
const struct btrace_insn_iterator begin,
const struct btrace_insn_iterator end 
)
static int btrace_stitch_bts ( struct btrace_data_bts btrace,
struct thread_info tp 
)
static
static int btrace_stitch_trace ( struct btrace_data btrace,
struct thread_info tp 
)
static
void btrace_teardown ( struct thread_info tp)
static void check_xml_btrace_version ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static

Definition at line 1368 of file btrace.c.

References _, gdb_xml_error(), gdb_xml_value::value, version, and xml_find_attribute().

static void do_btrace_data_cleanup ( void *  arg)
static

Definition at line 2237 of file btrace.c.

References btrace_data_fini().

Referenced by make_cleanup_btrace_data().

static enum btrace_insn_class ftrace_classify_insn ( struct gdbarch gdbarch,
CORE_ADDR  pc 
)
static
static void ftrace_debug ( const struct btrace_function bfun,
const char *  prefix 
)
static
static struct btrace_function* ftrace_find_call ( struct btrace_function bfun)
static
static struct btrace_function* ftrace_find_caller ( struct btrace_function bfun,
struct minimal_symbol mfun,
struct symbol fun 
)
static

Definition at line 302 of file btrace.c.

References ftrace_function_switched(), and btrace_function::up.

Referenced by ftrace_new_return().

static void ftrace_fixup_caller ( struct btrace_function bfun,
struct btrace_function caller,
enum btrace_function_flag  flags 
)
static
static int ftrace_function_switched ( const struct btrace_function bfun,
const struct minimal_symbol mfun,
const struct symbol fun 
)
static
static struct btrace_function* ftrace_new_call ( struct btrace_function caller,
struct minimal_symbol mfun,
struct symbol fun 
)
static
static struct btrace_function* ftrace_new_function ( struct btrace_function prev,
struct minimal_symbol mfun,
struct symbol fun 
)
static
static struct btrace_function* ftrace_new_gap ( struct btrace_function prev,
int  errcode 
)
static
static struct btrace_function* ftrace_new_return ( struct btrace_function prev,
struct minimal_symbol mfun,
struct symbol fun 
)
static
static struct btrace_function* ftrace_new_switch ( struct btrace_function prev,
struct minimal_symbol mfun,
struct symbol fun 
)
static

Definition at line 423 of file btrace.c.

References ftrace_debug(), and ftrace_new_function().

Referenced by ftrace_update_function().

static struct btrace_function* ftrace_new_tailcall ( struct btrace_function caller,
struct minimal_symbol mfun,
struct symbol fun 
)
static
static const char* ftrace_print_filename ( const struct btrace_function bfun)
static
static const char* ftrace_print_function_name ( const struct btrace_function bfun)
static
static const char* ftrace_print_insn_addr ( const struct btrace_insn insn)
static

Definition at line 111 of file btrace.c.

References core_addr_to_string_nz(), and btrace_insn::pc.

Referenced by btrace_stitch_bts(), and ftrace_update_function().

static void ftrace_update_caller ( struct btrace_function bfun,
struct btrace_function caller,
enum btrace_function_flag  flags 
)
static

Definition at line 225 of file btrace.c.

References btrace_function::flags, flags, ftrace_debug(), and btrace_function::up.

Referenced by ftrace_fixup_caller().

static struct btrace_function* ftrace_update_function ( struct btrace_function bfun,
CORE_ADDR  pc 
)
static
static void ftrace_update_insns ( struct btrace_function bfun,
const struct btrace_insn insn 
)
static

Definition at line 556 of file btrace.c.

References ftrace_debug(), record_debug, and VEC_safe_push.

Referenced by btrace_compute_ftrace_bts().

static int get_context_size ( char **  arg)
static

Definition at line 2591 of file btrace.c.

References _, error(), and skip_spaces().

Referenced by maint_btrace_packet_history_cmd().

static unsigned int get_uint ( char **  arg)
static

Definition at line 2568 of file btrace.c.

References _, error(), skip_spaces(), and UINT_MAX.

Referenced by maint_btrace_packet_history_cmd().

static void maint_btrace_clear_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 2743 of file btrace.c.

References _, btrace_clear(), error(), find_thread_ptid(), and inferior_ptid.

Referenced by _initialize_btrace().

static void maint_btrace_clear_packet_history_cmd ( char *  args,
int  from_tty 
)
static
static void maint_btrace_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 2761 of file btrace.c.

References all_commands, gdb_stdout, and help_list().

Referenced by _initialize_btrace().

static void maint_btrace_packet_history_cmd ( char *  arg,
int  from_tty 
)
static
static void maint_btrace_pt_set_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 2788 of file btrace.c.

References all_commands, gdb_stdout, and help_list().

Referenced by _initialize_btrace().

static void maint_btrace_pt_show_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 2797 of file btrace.c.

References all_commands, gdb_stdout, and help_list().

Referenced by _initialize_btrace().

static void maint_btrace_set_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 2770 of file btrace.c.

References all_commands, gdb_stdout, and help_list().

Referenced by _initialize_btrace().

static void maint_btrace_show_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 2779 of file btrace.c.

References all_commands, gdb_stdout, and help_list().

Referenced by _initialize_btrace().

static void maint_info_btrace_cmd ( char *  args,
int  from_tty 
)
static
struct cleanup* make_cleanup_btrace_data ( struct btrace_data data)

Definition at line 2245 of file btrace.c.

References do_btrace_data_cleanup(), and make_cleanup().

Referenced by btrace_add_pc(), btrace_fetch(), and parse_xml_btrace().

static void no_chunk ( char *  arg)
static

Definition at line 2607 of file btrace.c.

References _, and error().

Referenced by maint_btrace_packet_history_cmd().

void parse_xml_btrace ( struct btrace_data btrace,
const char *  buffer 
)
static void parse_xml_btrace_block ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static
void parse_xml_btrace_conf ( struct btrace_config conf,
const char *  xml 
)

Definition at line 1661 of file btrace.c.

References _, error(), and gdb_xml_parse_quick().

Referenced by btrace_read_config().

static void parse_xml_btrace_conf_bts ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static
static void parse_xml_btrace_conf_pt ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static
static void parse_xml_btrace_pt ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static
static void parse_xml_btrace_pt_config_cpu ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static
static void parse_xml_btrace_pt_raw ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
const char *  body_text 
)
static
static void parse_xml_raw ( struct gdb_xml_parser parser,
const char *  body_text,
gdb_byte **  pdata,
unsigned long *  psize 
)
static

Definition at line 1416 of file btrace.c.

References _, discard_cleanups(), fromhex(), gdb_xml_error(), len, make_cleanup(), size, xfree(), and xmalloc().

Referenced by parse_xml_btrace_pt_raw().

static void show_maint_btrace_pt_skip_pad ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 2862 of file btrace.c.

References _, and fprintf_filtered().

Referenced by _initialize_btrace().

Variable Documentation

const struct gdb_xml_attribute block_attributes[]
static
Initial value:
= {
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 1511 of file btrace.c.

const struct gdb_xml_attribute btrace_attributes[]
static
Initial value:
= {
{ "version", GDB_XML_AF_NONE, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}

Definition at line 1538 of file btrace.c.

const struct gdb_xml_element btrace_children[]
static
Initial value:
= {
{ "block", block_attributes, NULL,
NULL },
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static void parse_xml_btrace_pt(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: btrace.c:1498
static void parse_xml_btrace_block(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: btrace.c:1381
static const struct gdb_xml_attribute block_attributes[]
Definition: btrace.c:1511
static const struct gdb_xml_element btrace_pt_children[]
Definition: btrace.c:1531

Definition at line 1543 of file btrace.c.

const struct gdb_xml_attribute btrace_conf_attributes[]
static
Initial value:
= {
{ "version", GDB_XML_AF_NONE, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}

Definition at line 1645 of file btrace.c.

const struct gdb_xml_attribute btrace_conf_bts_attributes[]
static
Initial value:
= {
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 1632 of file btrace.c.

const struct gdb_xml_element btrace_conf_children[]
static
Initial value:
= {
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static const struct gdb_xml_attribute btrace_conf_bts_attributes[]
Definition: btrace.c:1632
static void parse_xml_btrace_conf_bts(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: btrace.c:1592
static void parse_xml_btrace_conf_pt(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: btrace.c:1611
static const struct gdb_xml_attribute btrace_conf_pt_attributes[]
Definition: btrace.c:1627

Definition at line 1637 of file btrace.c.

const struct gdb_xml_element btrace_conf_elements[]
static
Initial value:
= {
GDB_XML_EF_NONE, NULL, NULL },
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static const struct gdb_xml_attribute btrace_conf_attributes[]
Definition: btrace.c:1645
static const struct gdb_xml_element btrace_conf_children[]
Definition: btrace.c:1637

Definition at line 1650 of file btrace.c.

const struct gdb_xml_attribute btrace_conf_pt_attributes[]
static
Initial value:
= {
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 1627 of file btrace.c.

const struct gdb_xml_element btrace_elements[]
static
Initial value:
= {
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static const struct gdb_xml_element btrace_children[]
Definition: btrace.c:1543
static const struct gdb_xml_attribute btrace_attributes[]
Definition: btrace.c:1538
static void check_xml_btrace_version(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: btrace.c:1368

Definition at line 1551 of file btrace.c.

const struct gdb_xml_element btrace_pt_children[]
static
Initial value:
= {
{ "pt-config", NULL, btrace_pt_config_children, GDB_XML_EF_OPTIONAL, NULL,
NULL },
{ "raw", NULL, NULL, GDB_XML_EF_OPTIONAL, NULL, parse_xml_btrace_pt_raw },
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static const struct gdb_xml_element btrace_pt_config_children[]
Definition: btrace.c:1525
static void parse_xml_btrace_pt_raw(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
Definition: btrace.c:1484

Definition at line 1531 of file btrace.c.

const struct gdb_xml_element btrace_pt_config_children[]
static
Initial value:
= {
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static const struct gdb_xml_attribute btrace_pt_config_cpu_attributes[]
Definition: btrace.c:1517
static void parse_xml_btrace_pt_config_cpu(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: btrace.c:1457

Definition at line 1525 of file btrace.c.

const struct gdb_xml_attribute btrace_pt_config_cpu_attributes[]
static
Initial value:
= {
{ "vendor", GDB_XML_AF_NONE, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 1517 of file btrace.c.

struct cmd_list_element* maint_btrace_cmdlist
static

Definition at line 42 of file btrace.c.

struct cmd_list_element* maint_btrace_pt_set_cmdlist
static

Definition at line 45 of file btrace.c.

struct cmd_list_element* maint_btrace_pt_show_cmdlist
static

Definition at line 46 of file btrace.c.

int maint_btrace_pt_skip_pad = 1
static

Definition at line 49 of file btrace.c.

Referenced by _initialize_btrace().

struct cmd_list_element* maint_btrace_set_cmdlist
static

Definition at line 43 of file btrace.c.

struct cmd_list_element* maint_btrace_show_cmdlist
static

Definition at line 44 of file btrace.c.