GDB (xrefs)
|
#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) |
#define DEBUG | ( | msg, | |
args... | |||
) |
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().
void _initialize_btrace | ( | void | ) |
Definition at line 2874 of file btrace.c.
References _, add_cmd(), add_prefix_cmd(), add_setshow_boolean_cmd(), class_maintenance, maint_btrace_clear_cmd(), maint_btrace_clear_packet_history_cmd(), maint_btrace_cmd(), maint_btrace_packet_history_cmd(), maint_btrace_pt_set_cmd(), maint_btrace_pt_show_cmd(), maint_btrace_pt_skip_pad, maint_btrace_set_cmd(), maint_btrace_show_cmd(), maint_info_btrace_cmd(), maintenance_set_cmdlist, maintenance_show_cmdlist, maintenanceinfolist, maintenancelist, and show_maint_btrace_pt_skip_pad().
|
static |
Definition at line 989 of file btrace.c.
References btrace_block::begin, btrace_compute_ftrace(), btrace_data_init(), BTRACE_FORMAT_BTS, btrace_data::bts, do_cleanups(), btrace_block::end, btrace_data::format, get_thread_regcache(), make_cleanup_btrace_data(), thread_info::ptid, regcache_read_pc(), btrace_data::variant, and VEC_safe_push.
Referenced by btrace_enable().
void btrace_call_begin | ( | struct btrace_call_iterator * | it, |
const struct btrace_thread_info * | btinfo | ||
) |
Definition at line 2020 of file btrace.c.
References _, btrace_thread_info::begin, btrace_call_iterator::btinfo, error(), and btrace_call_iterator::function.
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 | ||
) |
Definition at line 2036 of file btrace.c.
References _, btrace_call_iterator::btinfo, btrace_thread_info::end, error(), and btrace_call_iterator::function.
Referenced by record_btrace_call_history(), record_btrace_call_history_range(), and record_btrace_info().
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 | ||
) |
Definition at line 2052 of file btrace.c.
References btrace_function::flow, btrace_call_iterator::function, btrace_func_link::next, and VEC_length.
Referenced by btrace_call_history(), record_btrace_call_history(), and record_btrace_call_history_range().
unsigned int btrace_call_number | ( | const struct btrace_call_iterator * | it | ) |
Definition at line 1991 of file btrace.c.
References btrace_call_iterator::btinfo, btrace_thread_info::end, btrace_call_iterator::function, btrace_function::number, and VEC_length.
Referenced by btrace_call_cmp(), btrace_call_history(), record_btrace_call_history(), and record_btrace_info().
unsigned int btrace_call_prev | ( | struct btrace_call_iterator * | it, |
unsigned int | stride | ||
) |
Definition at line 2088 of file btrace.c.
References btrace_call_iterator::btinfo, btrace_thread_info::end, btrace_function::flow, btrace_call_iterator::function, btrace_func_link::prev, and VEC_length.
Referenced by record_btrace_call_history(), and record_btrace_info().
void btrace_clear | ( | struct thread_info * | tp | ) |
Definition at line 1318 of file btrace.c.
References btrace_thread_info::begin, thread_info::btrace, btrace_clear_history(), btrace_data_clear(), btrace_maint_clear(), btrace_thread_info::data, DEBUG, btrace_thread_info::end, btrace_function::flow, btrace_func_link::next, btrace_thread_info::ngaps, thread_info::num, thread_info::ptid, reinit_frame_cache(), target_pid_to_str(), and xfree().
Referenced by btrace_disable(), btrace_fetch(), btrace_free_objfile(), btrace_stitch_bts(), btrace_teardown(), and maint_btrace_clear_cmd().
|
static |
Definition at line 1202 of file btrace.c.
References btrace_thread_info::call_history, btrace_thread_info::insn_history, btrace_thread_info::replay, and xfree().
Referenced by btrace_clear(), and btrace_fetch().
|
static |
Definition at line 965 of file btrace.c.
References _, btrace_compute_ftrace_bts(), btrace_compute_ftrace_pt(), BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, btrace_data::bts, DEBUG, btrace_data::format, internal_error(), btrace_data::pt, and btrace_data::variant.
Referenced by btrace_add_pc(), and btrace_fetch().
|
static |
Definition at line 593 of file btrace.c.
References _, BDE_BTS_INSN_SIZE, BDE_BTS_OVERFLOW, btrace_block::begin, btrace_thread_info::begin, thread_info::btrace, CATCH, core_addr_to_string_nz(), btrace_block::end, btrace_thread_info::end, END_CATCH, error(), ftrace_classify_insn(), ftrace_new_gap(), ftrace_update_function(), ftrace_update_insns(), gdb_insn_length(), btrace_insn::iclass, INT_MAX, btrace_function::level, btrace_thread_info::level, min, btrace_thread_info::ngaps, btrace_insn::pc, RETURN_MASK_ERROR, btrace_insn::size, size, target_gdbarch(), TRY, VEC_index, VEC_length, and warning().
Referenced by btrace_compute_ftrace().
|
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 | ) |
Definition at line 1039 of file btrace.c.
References btrace_thread_info::target, and target_btrace_conf().
Referenced by btrace_call_history(), btrace_insn_history(), maint_info_btrace_cmd(), and record_btrace_info().
void btrace_disable | ( | struct thread_info * | tp | ) |
Definition at line 1050 of file btrace.c.
References thread_info::btrace, btrace_clear(), DEBUG, thread_info::num, thread_info::ptid, btrace_thread_info::target, target_disable_btrace(), and target_pid_to_str().
Referenced by record_btrace_disable_callback(), and record_btrace_stop_recording().
void btrace_enable | ( | struct thread_info * | tp, |
const struct btrace_config * | conf | ||
) |
Definition at line 1018 of file btrace.c.
References _, thread_info::btrace, btrace_add_pc(), DEBUG, error(), btrace_config::format, thread_info::num, thread_info::ptid, btrace_thread_info::target, target_enable_btrace(), target_pid_to_str(), and target_supports_btrace().
Referenced by record_btrace_enable_warn(), and record_btrace_open().
void btrace_fetch | ( | struct thread_info * | tp | ) |
Definition at line 1243 of file btrace.c.
References _, thread_info::btrace, btrace_clear(), btrace_clear_history(), btrace_compute_ftrace(), btrace_data_append(), btrace_data_empty(), btrace_data_init(), btrace_maint_clear(), BTRACE_READ_ALL, BTRACE_READ_DELTA, BTRACE_READ_NEW, btrace_stitch_trace(), btrace_thread_info::data, DEBUG, do_cleanups(), btrace_thread_info::end, error(), make_cleanup_btrace_data(), thread_info::num, thread_info::ptid, btrace_thread_info::replay, btrace_thread_info::target, target_pid_to_str(), and target_read_btrace().
Referenced by record_btrace_info(), record_btrace_resume_thread(), and require_btrace_thread().
int btrace_find_call_by_number | ( | struct btrace_call_iterator * | it, |
const struct btrace_thread_info * | btinfo, | ||
unsigned int | number | ||
) |
Definition at line 2151 of file btrace.c.
References btrace_call_iterator::btinfo, btrace_thread_info::end, btrace_function::flow, btrace_call_iterator::function, btrace_function::number, and btrace_func_link::prev.
Referenced by record_btrace_call_history_range().
int btrace_find_insn_by_number | ( | struct btrace_insn_iterator * | it, |
const struct btrace_thread_info * | btinfo, | ||
unsigned int | number | ||
) |
Definition at line 1947 of file btrace.c.
References btrace_thread_info::end, btrace_function::errcode, btrace_function::flow, btrace_insn_iterator::function, gdb_assert, btrace_insn_iterator::index, btrace_function::insn_offset, btrace_func_link::prev, and VEC_length.
Referenced by record_btrace_goto(), and record_btrace_insn_history_range().
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 | ||
) |
Definition at line 1721 of file btrace.c.
References _, btrace_thread_info::begin, error(), btrace_insn_iterator::function, and btrace_insn_iterator::index.
Referenced by btrace_is_empty(), and record_btrace_goto_begin().
int btrace_insn_cmp | ( | const struct btrace_insn_iterator * | lhs, |
const struct btrace_insn_iterator * | rhs | ||
) |
Definition at line 1902 of file btrace.c.
References btrace_insn_number(), btrace_insn_iterator::function, and btrace_function::insn_offset.
Referenced by btrace_insn_history(), btrace_is_empty(), record_btrace_set_replay(), and record_btrace_step_thread().
void btrace_insn_end | ( | struct btrace_insn_iterator * | it, |
const struct btrace_thread_info * | btinfo | ||
) |
Definition at line 1737 of file btrace.c.
References _, btrace_thread_info::end, error(), btrace_insn_iterator::function, btrace_insn_iterator::index, and VEC_length.
Referenced by btrace_is_empty(), record_btrace_info(), record_btrace_insn_history(), record_btrace_insn_history_range(), record_btrace_start_replaying(), and record_btrace_step_thread().
const struct btrace_insn* btrace_insn_get | ( | const struct btrace_insn_iterator * | it | ) |
Definition at line 1682 of file btrace.c.
References btrace_function::errcode, btrace_insn_iterator::function, gdb_assert, btrace_insn_iterator::index, VEC_index, and VEC_length.
Referenced by btrace_insn_history(), record_btrace_fetch_registers(), record_btrace_start_replaying(), and record_btrace_step_thread().
unsigned int btrace_insn_next | ( | struct btrace_insn_iterator * | it, |
unsigned int | stride | ||
) |
Definition at line 1762 of file btrace.c.
References btrace_function::flow, btrace_insn_iterator::function, gdb_assert, btrace_insn_iterator::index, min, btrace_func_link::next, and VEC_length.
Referenced by btrace_insn_history(), record_btrace_insn_history(), record_btrace_insn_history_range(), and record_btrace_step_thread().
unsigned int btrace_insn_number | ( | const struct btrace_insn_iterator * | it | ) |
Definition at line 1705 of file btrace.c.
References btrace_function::errcode, btrace_insn_iterator::function, btrace_insn_iterator::index, and btrace_function::insn_offset.
Referenced by btrace_insn_cmp(), btrace_insn_history(), record_btrace_info(), and record_btrace_insn_history().
unsigned int btrace_insn_prev | ( | struct btrace_insn_iterator * | it, |
unsigned int | stride | ||
) |
Definition at line 1844 of file btrace.c.
References btrace_function::flow, btrace_insn_iterator::function, gdb_assert, btrace_insn_iterator::index, min, btrace_func_link::prev, and VEC_length.
Referenced by record_btrace_info(), record_btrace_insn_history(), record_btrace_start_replaying(), and record_btrace_step_thread().
int btrace_is_empty | ( | struct thread_info * | tp | ) |
Definition at line 2218 of file btrace.c.
References btrace_thread_info::begin, thread_info::btrace, btrace_insn_begin(), btrace_insn_cmp(), and btrace_insn_end().
Referenced by record_btrace_info(), record_btrace_step_thread(), and require_btrace_thread().
int btrace_is_replaying | ( | struct thread_info * | tp | ) |
Definition at line 2210 of file btrace.c.
References thread_info::btrace, and btrace_thread_info::replay.
Referenced by record_btrace_info(), record_btrace_is_replaying(), and record_btrace_resume().
|
static |
Definition at line 1216 of file btrace.c.
References btrace_maint_packet_history::begin, BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, btrace_maint_info::bts, btrace_thread_info::data, btrace_maint_packet_history::end, btrace_data::format, btrace_thread_info::maint, btrace_maint_info::packet_history, btrace_maint_info::variant, and xfree().
Referenced by btrace_clear(), btrace_fetch(), and maint_btrace_clear_packet_history_cmd().
|
static |
Definition at line 2503 of file btrace.c.
References btrace_block::begin, btrace_maint_packet_history::begin, BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, btrace_data::bts, btrace_maint_info::bts, core_addr_to_string_nz(), btrace_thread_info::data, btrace_block::end, btrace_maint_packet_history::end, btrace_data::format, btrace_thread_info::maint, btrace_maint_info::packet_history, printf_unfiltered(), btrace_data::variant, btrace_maint_info::variant, VEC, and VEC_index.
Referenced by maint_btrace_packet_history_cmd().
|
static |
Definition at line 2464 of file btrace.c.
References btrace_maint_packet_history::begin, BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, btrace_data::bts, btrace_maint_info::bts, btrace_thread_info::data, btrace_maint_packet_history::end, btrace_data::format, btrace_thread_info::maint, btrace_maint_info::packet_history, btrace_data::variant, btrace_maint_info::variant, VEC_empty, and VEC_length.
Referenced by maint_btrace_packet_history_cmd().
void btrace_set_call_history | ( | struct btrace_thread_info * | btinfo, |
const struct btrace_call_iterator * | begin, | ||
const struct btrace_call_iterator * | end | ||
) |
Definition at line 2194 of file btrace.c.
References btrace_call_history::begin, btrace_call_iterator::btinfo, btrace_thread_info::call_history, btrace_call_history::end, gdb_assert, and xzalloc().
Referenced by record_btrace_call_history(), and record_btrace_call_history_range().
void btrace_set_insn_history | ( | struct btrace_thread_info * | btinfo, |
const struct btrace_insn_iterator * | begin, | ||
const struct btrace_insn_iterator * | end | ||
) |
Definition at line 2180 of file btrace.c.
References btrace_insn_history::begin, btrace_insn_history::end, btrace_thread_info::insn_history, and xzalloc().
Referenced by record_btrace_insn_history(), and record_btrace_insn_history_range().
|
static |
Definition at line 1088 of file btrace.c.
References _, btrace_block::begin, btrace_thread_info::begin, thread_info::btrace, btrace_clear(), core_addr_to_string_nz(), DEBUG, btrace_block::end, btrace_thread_info::end, ftrace_print_insn_addr(), gdb_assert, btrace_insn::pc, VEC_empty, VEC_last, VEC_length, VEC_pop, and warning().
Referenced by btrace_stitch_trace().
|
static |
Definition at line 1177 of file btrace.c.
References _, btrace_data_empty(), BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, btrace_stitch_bts(), btrace_data::bts, btrace_data::format, internal_error(), and btrace_data::variant.
Referenced by btrace_fetch().
void btrace_teardown | ( | struct thread_info * | tp | ) |
Definition at line 1069 of file btrace.c.
References thread_info::btrace, btrace_clear(), DEBUG, thread_info::num, thread_info::ptid, btrace_thread_info::target, target_pid_to_str(), and target_teardown_btrace().
Referenced by clear_thread_inferior_resources(), and record_btrace_close().
|
static |
Definition at line 1368 of file btrace.c.
References _, gdb_xml_error(), gdb_xml_value::value, version, and xml_find_attribute().
|
static |
Definition at line 2237 of file btrace.c.
References btrace_data_fini().
Referenced by make_cleanup_btrace_data().
|
static |
Definition at line 568 of file btrace.c.
References BTRACE_INSN_CALL, BTRACE_INSN_JUMP, BTRACE_INSN_OTHER, BTRACE_INSN_RETURN, CATCH, END_CATCH, error(), gdbarch_insn_is_call(), gdbarch_insn_is_jump(), gdbarch_insn_is_ret(), btrace_insn::iclass, RETURN_MASK_ERROR, and TRY.
Referenced by btrace_compute_ftrace_bts().
|
static |
Definition at line 122 of file btrace.c.
References DEBUG_FTRACE, ftrace_print_filename(), ftrace_print_function_name(), btrace_function::insn_offset, btrace_function::level, and VEC_length.
Referenced by ftrace_new_call(), ftrace_new_gap(), ftrace_new_return(), ftrace_new_switch(), ftrace_new_tailcall(), ftrace_update_caller(), and ftrace_update_insns().
|
static |
Definition at line 324 of file btrace.c.
References BTRACE_INSN_CALL, btrace_function::errcode, btrace_insn::iclass, btrace_function::up, and VEC_last.
Referenced by ftrace_new_return().
|
static |
Definition at line 302 of file btrace.c.
References ftrace_function_switched(), and btrace_function::up.
Referenced by ftrace_new_return().
|
static |
Definition at line 241 of file btrace.c.
References ftrace_update_caller(), btrace_func_link::next, btrace_func_link::prev, and btrace_function::segment.
Referenced by ftrace_new_return().
|
static |
Definition at line 143 of file btrace.c.
References btrace_function::msym, MSYMBOL_LINKAGE_NAME, btrace_function::sym, SYMBOL_LINKAGE_NAME, symbol_symtab(), and symtab_to_fullname().
Referenced by ftrace_find_caller(), and ftrace_update_function().
|
static |
Definition at line 262 of file btrace.c.
References ftrace_debug(), ftrace_new_function(), btrace_function::level, and btrace_function::up.
Referenced by ftrace_update_function().
|
static |
Definition at line 190 of file btrace.c.
References btrace_function::flow, gdb_assert, btrace_function::insn_offset, btrace_function::level, btrace_function::msym, btrace_func_link::next, btrace_function::number, btrace_func_link::prev, btrace_function::sym, VEC_length, and xzalloc().
Referenced by ftrace_new_call(), ftrace_new_gap(), ftrace_new_return(), ftrace_new_switch(), ftrace_new_tailcall(), and ftrace_update_function().
|
static |
Definition at line 443 of file btrace.c.
References btrace_function::errcode, ftrace_debug(), ftrace_new_function(), and VEC_empty.
Referenced by btrace_compute_ftrace_bts().
|
static |
Definition at line 348 of file btrace.c.
References BFUN_UP_LINKS_TO_RET, btrace_function::flags, ftrace_debug(), ftrace_find_call(), ftrace_find_caller(), ftrace_fixup_caller(), ftrace_new_function(), gdb_assert, btrace_function::level, min, btrace_func_link::next, btrace_func_link::prev, btrace_function::segment, and btrace_function::up.
Referenced by ftrace_update_function().
|
static |
Definition at line 423 of file btrace.c.
References ftrace_debug(), and ftrace_new_function().
Referenced by ftrace_update_function().
|
static |
Definition at line 282 of file btrace.c.
References BFUN_UP_LINKS_TO_TAILCALL, btrace_function::flags, ftrace_debug(), ftrace_new_function(), btrace_function::level, and btrace_function::up.
Referenced by ftrace_update_function().
|
static |
Definition at line 92 of file btrace.c.
References btrace_function::sym, symbol_symtab(), and symtab_to_filename_for_display().
Referenced by ftrace_debug(), and ftrace_update_function().
|
static |
Definition at line 71 of file btrace.c.
References btrace_function::msym, MSYMBOL_PRINT_NAME, btrace_function::sym, and SYMBOL_PRINT_NAME.
Referenced by ftrace_debug(), and ftrace_update_function().
|
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 |
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 |
Definition at line 466 of file btrace.c.
References BTRACE_INSN_CALL, BTRACE_INSN_JUMP, BTRACE_INSN_RETURN, core_addr_to_string_nz(), DEBUG_FTRACE, btrace_function::errcode, find_pc_function(), ftrace_function_switched(), ftrace_new_call(), ftrace_new_function(), ftrace_new_return(), ftrace_new_switch(), ftrace_new_tailcall(), ftrace_print_filename(), ftrace_print_function_name(), ftrace_print_insn_addr(), get_pc_function_start(), btrace_insn::iclass, lookup_minimal_symbol_by_pc(), bound_minimal_symbol::minsym, btrace_insn::pc, btrace_insn::size, VEC_empty, and VEC_last.
Referenced by btrace_compute_ftrace_bts().
|
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 |
Definition at line 2591 of file btrace.c.
References _, error(), and skip_spaces().
Referenced by maint_btrace_packet_history_cmd().
|
static |
Definition at line 2568 of file btrace.c.
References _, error(), skip_spaces(), and UINT_MAX.
Referenced by maint_btrace_packet_history_cmd().
|
static |
Definition at line 2743 of file btrace.c.
References _, btrace_clear(), error(), find_thread_ptid(), and inferior_ptid.
Referenced by _initialize_btrace().
|
static |
Definition at line 2721 of file btrace.c.
References _, thread_info::btrace, btrace_data_clear(), btrace_maint_clear(), btrace_thread_info::data, error(), find_thread_ptid(), and inferior_ptid.
Referenced by _initialize_btrace().
|
static |
Definition at line 2761 of file btrace.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_btrace().
|
static |
Definition at line 2616 of file btrace.c.
References _, thread_info::btrace, btrace_maint_print_packets(), btrace_maint_update_packets(), dont_repeat(), error(), find_thread_ptid(), from, get_context_size(), get_uint(), inferior_ptid, no_chunk(), printf_unfiltered(), size, skip_spaces(), and to.
Referenced by _initialize_btrace().
|
static |
Definition at line 2788 of file btrace.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_btrace().
|
static |
Definition at line 2797 of file btrace.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_btrace().
|
static |
Definition at line 2770 of file btrace.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_btrace().
|
static |
Definition at line 2779 of file btrace.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_btrace().
|
static |
Definition at line 2806 of file btrace.c.
References _, thread_info::btrace, btrace_conf(), BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, btrace_format_string(), btrace_data::bts, btrace_thread_info::data, error(), find_thread_ptid(), btrace_config::format, inferior_ptid, btrace_thread_info::maint, printf_unfiltered(), btrace_data::variant, btrace_maint_info::variant, and VEC_length.
Referenced by _initialize_btrace().
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 |
Definition at line 2607 of file btrace.c.
Referenced by maint_btrace_packet_history_cmd().
void parse_xml_btrace | ( | struct btrace_data * | btrace, |
const char * | buffer | ||
) |
Definition at line 1562 of file btrace.c.
References _, BTRACE_FORMAT_NONE, discard_cleanups(), error(), btrace_data::format, gdb_xml_parse_quick(), and make_cleanup_btrace_data().
Referenced by remote_read_btrace().
|
static |
Definition at line 1381 of file btrace.c.
References _, btrace_block::begin, BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, btrace_data::bts, btrace_block::end, btrace_data::format, gdb_xml_error(), gdb_xml_value::value, btrace_data::variant, VEC_safe_push, and xml_find_attribute().
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 |
Definition at line 1592 of file btrace.c.
References BTRACE_FORMAT_BTS, btrace_config::bts, btrace_config::format, int, btrace_config_bts::size, size, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 1611 of file btrace.c.
References BTRACE_FORMAT_PT, btrace_config::format, int, btrace_config::pt, btrace_config_pt::size, size, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 1498 of file btrace.c.
References BTRACE_FORMAT_PT, btrace_data_pt::config, btrace_data_pt_config::cpu, CV_UNKNOWN, btrace_data_pt::data, btrace_data::format, btrace_data::pt, btrace_data_pt::size, btrace_data::variant, and btrace_cpu::vendor.
|
static |
Definition at line 1457 of file btrace.c.
References btrace_data_pt::config, btrace_data_pt_config::cpu, CV_INTEL, btrace_cpu::family, btrace_cpu::model, btrace_data::pt, btrace_cpu::stepping, gdb_xml_value::value, btrace_data::variant, btrace_cpu::vendor, and xml_find_attribute().
|
static |
Definition at line 1484 of file btrace.c.
References btrace_data_pt::data, parse_xml_raw(), btrace_data::pt, btrace_data_pt::size, and btrace_data::variant.
|
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 |
Definition at line 2862 of file btrace.c.
References _, and fprintf_filtered().
Referenced by _initialize_btrace().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 49 of file btrace.c.
Referenced by _initialize_btrace().
|
static |
|
static |