GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | btrace_insn |
struct | btrace_func_link |
struct | btrace_function |
struct | btrace_insn_iterator |
struct | btrace_call_iterator |
struct | btrace_insn_history |
struct | btrace_call_history |
struct | btrace_maint_packet_history |
struct | btrace_maint_info |
struct | btrace_thread_info |
Typedefs | |
typedef struct btrace_insn | btrace_insn_s |
Enumerations | |
enum | btrace_insn_class { BTRACE_INSN_OTHER, BTRACE_INSN_CALL, BTRACE_INSN_RETURN, BTRACE_INSN_JUMP } |
enum | btrace_function_flag { BFUN_UP_LINKS_TO_RET = (1 << 0), BFUN_UP_LINKS_TO_TAILCALL = (1 << 1) } |
enum | btrace_bts_error { BDE_BTS_OVERFLOW = 1, BDE_BTS_INSN_SIZE } |
enum | btrace_pt_error { BDE_PT_USER_QUIT = 1, BDE_PT_DISABLED, BDE_PT_OVERFLOW } |
enum | btrace_thread_flag { BTHR_STEP = (1 << 0), BTHR_RSTEP = (1 << 1), BTHR_CONT = (1 << 2), BTHR_RCONT = (1 << 3), BTHR_MOVE = (BTHR_STEP | BTHR_RSTEP | BTHR_CONT | BTHR_RCONT) } |
typedef struct btrace_insn btrace_insn_s |
enum btrace_bts_error |
enum btrace_function_flag |
enum btrace_insn_class |
enum btrace_pt_error |
enum btrace_thread_flag |
void btrace_call_begin | ( | struct btrace_call_iterator * | , |
const struct btrace_thread_info * | |||
) |
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 * | , |
const struct btrace_thread_info * | |||
) |
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 * | ) |
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 * | , |
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 * | ) |
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 * | , |
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 * | ) |
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().
const struct btrace_config* btrace_conf | ( | const struct btrace_thread_info * | ) |
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 * | ) |
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 * | ) |
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 * | , |
const struct btrace_thread_info * | , | ||
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 * | , |
const struct btrace_thread_info * | , | ||
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 * | ) |
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 * | , |
const struct btrace_thread_info * | |||
) |
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 * | , |
const struct btrace_thread_info * | |||
) |
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 * | ) |
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 * | , |
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 * | ) |
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 * | , |
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().
void btrace_set_call_history | ( | struct btrace_thread_info * | , |
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 * | , |
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().
void btrace_teardown | ( | struct thread_info * | ) |
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().
DEF_VEC_O | ( | btrace_insn_s | ) |
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().
void parse_xml_btrace | ( | struct btrace_data * | data, |
const char * | xml | ||
) |
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().
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().