GDB (xrefs)
|
#include "defs.h"
#include "record.h"
#include "gdbthread.h"
#include "target.h"
#include "gdbcmd.h"
#include "disasm.h"
#include "observer.h"
#include "cli/cli-utils.h"
#include "source.h"
#include "ui-out.h"
#include "symtab.h"
#include "filenames.h"
#include "regcache.h"
#include "frame-unwind.h"
#include "hashtab.h"
#include "infrun.h"
#include "event-loop.h"
#include "inf-loop.h"
Go to the source code of this file.
Classes | |
struct | btrace_frame_cache |
Macros | |
#define | DEBUG(msg, args...) |
#define DEBUG | ( | msg, | |
args... | |||
) |
Definition at line 90 of file record-btrace.c.
Referenced by btrace_call_history(), btrace_insn_history(), record_btrace_auto_disable(), record_btrace_auto_enable(), record_btrace_call_history(), record_btrace_call_history_range(), record_btrace_frame_prev_register(), record_btrace_frame_sniffer(), record_btrace_frame_this_id(), record_btrace_info(), record_btrace_insn_history(), record_btrace_insn_history_range(), record_btrace_open(), record_btrace_resume(), record_btrace_resume_thread(), record_btrace_step_thread(), record_btrace_stop_recording(), record_btrace_tailcall_frame_sniffer(), record_btrace_wait(), and require_btrace_thread().
void _initialize_record_btrace | ( | void | ) |
Definition at line 2518 of file record-btrace.c.
References _, add_alias_cmd(), add_cmd(), add_prefix_cmd(), add_setshow_enum_cmd(), add_setshow_uinteger_cmd(), add_target(), bfcache, bfcache_eq(), bfcache_hash(), btrace_config::bts, class_obscure, class_support, cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmd_set_record_btrace(), cmd_set_record_btrace_bts(), cmd_set_record_btrace_pt(), cmd_show_record_btrace(), cmd_show_record_btrace_bts(), cmd_show_record_btrace_pt(), cmd_show_replay_memory_access(), init_record_btrace_ops(), no_class, btrace_config::pt, record_btrace_conf, record_btrace_ops, record_cmdlist, replay_memory_access, replay_memory_access_types, set_record_cmdlist, show_record_bts_buffer_size_value(), show_record_cmdlist, show_record_pt_buffer_size_value(), btrace_config_bts::size, btrace_config_pt::size, xcalloc(), and xfree().
Definition at line 1352 of file record-btrace.c.
References btrace_frame_cache::frame.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 1342 of file record-btrace.c.
References btrace_frame_cache::frame.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 1363 of file record-btrace.c.
References bfcache, btrace_frame_cache::frame, FRAME_OBSTACK_ZALLOC, and gdb_assert.
Referenced by record_btrace_frame_sniffer(), and record_btrace_tailcall_frame_sniffer().
|
static |
Definition at line 870 of file record-btrace.c.
References _, btrace_call_cmp(), btrace_call_get(), btrace_call_history_insn_range(), btrace_call_history_src_line(), btrace_call_next(), btrace_call_number(), btrace_conf(), btrace_ui_out_decode_error(), DEBUG, btrace_function::errcode, btrace_config::format, gdb_assert, btrace_function::level, btrace_thread_info::level, btrace_function::msym, MSYMBOL_PRINT_NAME, btrace_function::number, RECORD_PRINT_INDENT_CALLS, RECORD_PRINT_INSN_RANGE, RECORD_PRINT_SRC_LINE, btrace_function::sym, SYMBOL_PRINT_NAME, ui_out_field_string(), ui_out_field_uint(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by record_btrace_call_history(), and record_btrace_call_history_range().
|
static |
Definition at line 758 of file record-btrace.c.
References gdb_assert, btrace_function::insn_offset, size, ui_out_field_uint(), ui_out_text(), and VEC_length.
Referenced by btrace_call_history().
|
static |
Definition at line 818 of file record-btrace.c.
References btrace_compute_src_line_range(), btrace_function::sym, symbol_symtab(), symtab_to_filename_for_display(), ui_out_field_int(), ui_out_field_string(), and ui_out_text().
Referenced by btrace_call_history().
|
static |
Definition at line 780 of file record-btrace.c.
References symtab_and_line::end, find_pc_line(), INT_MAX, INT_MIN, max, min, btrace_insn::pc, btrace_function::sym, symbol_symtab(), and VEC_iterate.
Referenced by btrace_call_history_src_line().
|
static |
Definition at line 848 of file record-btrace.c.
References btrace_function::msym, MSYMBOL_PRINT_NAME, btrace_function::sym, and SYMBOL_PRINT_NAME.
Referenced by record_btrace_frame_prev_register(), record_btrace_frame_sniffer(), record_btrace_frame_this_id(), and record_btrace_tailcall_frame_sniffer().
|
static |
Definition at line 1381 of file record-btrace.c.
References bfcache, btrace_frame_cache::bfun, and btrace_frame_cache::frame.
Referenced by record_btrace_frame_sniffer(), and record_btrace_tailcall_frame_sniffer().
|
static |
Definition at line 536 of file record-btrace.c.
References btrace_conf(), btrace_insn_cmp(), btrace_insn_get(), btrace_insn_next(), btrace_insn_number(), btrace_ui_out_decode_error(), DEBUG, btrace_function::errcode, btrace_config::format, btrace_insn_iterator::function, gdb_assert, gdb_disassembly(), btrace_insn::pc, target_gdbarch(), ui_out_field_uint(), and ui_out_text().
Referenced by record_btrace_insn_history(), and record_btrace_insn_history_range().
|
static |
Definition at line 1868 of file record-btrace.c.
References target_waitstatus::kind, status, and TARGET_WAITKIND_NO_HISTORY.
Referenced by record_btrace_step_thread().
|
static |
Definition at line 1880 of file record-btrace.c.
References target_waitstatus::kind, target_waitstatus::sig, status, TARGET_WAITKIND_STOPPED, and target_waitstatus::value.
Referenced by record_btrace_step_thread().
|
static |
Definition at line 456 of file record-btrace.c.
References _, BDE_BTS_INSN_SIZE, BDE_BTS_OVERFLOW, BDE_PT_DISABLED, BDE_PT_OVERFLOW, BDE_PT_USER_QUIT, BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, ui_out_field_int(), and ui_out_text().
Referenced by btrace_call_history(), and btrace_insn_history().
|
static |
Definition at line 2354 of file record-btrace.c.
References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, CATCH, END_CATCH, error(), execute_command(), btrace_config::format, record_btrace_conf, RETURN_MASK_ALL, throw_exception(), and TRY.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2376 of file record-btrace.c.
References _, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, CATCH, END_CATCH, error(), execute_command(), btrace_config::format, record_btrace_conf, RETURN_MASK_ALL, throw_exception(), and TRY.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2398 of file record-btrace.c.
References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, CATCH, END_CATCH, error(), execute_command(), btrace_config::format, record_btrace_conf, RETURN_MASK_ALL, throw_exception(), and TRY.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2430 of file record-btrace.c.
References cmd_show_list().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2456 of file record-btrace.c.
References _, all_commands, gdb_stdout, help_list(), and printf_unfiltered().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2475 of file record-btrace.c.
References _, all_commands, gdb_stdout, help_list(), and printf_unfiltered().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2438 of file record-btrace.c.
References cmd_show_list().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2467 of file record-btrace.c.
References cmd_show_list().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2486 of file record-btrace.c.
References cmd_show_list().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2446 of file record-btrace.c.
References _, fprintf_filtered(), gdb_stdout, and replay_memory_access.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2298 of file record-btrace.c.
References OPS_MAGIC, record_btrace_async(), record_btrace_call_history(), record_btrace_call_history_from(), record_btrace_call_history_range(), record_btrace_can_execute_reverse(), record_btrace_close(), record_btrace_done_generating_core(), record_btrace_execution_direction(), record_btrace_fetch_registers(), record_btrace_goto(), record_btrace_goto_begin(), record_btrace_goto_end(), record_btrace_info(), record_btrace_insert_breakpoint(), record_btrace_insn_history(), record_btrace_insn_history_from(), record_btrace_insn_history_range(), record_btrace_is_replaying(), record_btrace_open(), record_btrace_ops, record_btrace_prepare_to_generate_core(), record_btrace_prepare_to_store(), record_btrace_remove_breakpoint(), record_btrace_resume(), record_btrace_stop_recording(), record_btrace_stopped_by_hw_breakpoint(), record_btrace_stopped_by_sw_breakpoint(), record_btrace_store_registers(), record_btrace_supports_stopped_by_hw_breakpoint(), record_btrace_supports_stopped_by_sw_breakpoint(), record_btrace_thread_alive(), record_btrace_to_get_tailcall_unwinder(), record_btrace_to_get_unwinder(), record_btrace_update_thread_list(), record_btrace_wait(), record_btrace_xfer_partial(), record_detach(), record_disconnect(), record_kill(), record_mourn_inferior(), record_stratum, target_ops::to_async, target_ops::to_call_history, target_ops::to_call_history_from, target_ops::to_call_history_range, target_ops::to_can_execute_reverse, target_ops::to_close, target_ops::to_detach, target_ops::to_disconnect, target_ops::to_doc, target_ops::to_done_generating_core, target_ops::to_execution_direction, target_ops::to_fetch_registers, target_ops::to_get_tailcall_unwinder, target_ops::to_get_unwinder, target_ops::to_goto_record, target_ops::to_goto_record_begin, target_ops::to_goto_record_end, target_ops::to_info_record, target_ops::to_insert_breakpoint, target_ops::to_insn_history, target_ops::to_insn_history_from, target_ops::to_insn_history_range, target_ops::to_kill, target_ops::to_longname, target_ops::to_magic, target_ops::to_mourn_inferior, target_ops::to_open, target_ops::to_prepare_to_generate_core, target_ops::to_prepare_to_store, target_ops::to_record_is_replaying, target_ops::to_remove_breakpoint, target_ops::to_resume, target_ops::to_shortname, target_ops::to_stop_recording, target_ops::to_stopped_by_hw_breakpoint, target_ops::to_stopped_by_sw_breakpoint, target_ops::to_store_registers, target_ops::to_stratum, target_ops::to_supports_stopped_by_hw_breakpoint, target_ops::to_supports_stopped_by_sw_breakpoint, target_ops::to_thread_alive, target_ops::to_update_thread_list, target_ops::to_wait, and target_ops::to_xfer_partial.
Referenced by _initialize_record_btrace().
Definition at line 298 of file record-btrace.c.
References size.
Referenced by record_btrace_print_bts_conf(), and record_btrace_print_pt_conf().
|
static |
Definition at line 285 of file record-btrace.c.
References target_ops::beneath, clear_async_event_handler(), mark_async_event_handler(), and target_ops::to_async.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 183 of file record-btrace.c.
References DEBUG, and observer_detach_new_thread().
Referenced by record_btrace_close(), and record_btrace_stop_recording().
|
static |
Definition at line 172 of file record-btrace.c.
References DEBUG, observer_attach_new_thread(), and record_btrace_enable_warn().
Referenced by record_btrace_open().
|
static |
Definition at line 944 of file record-btrace.c.
References _, btrace_call_history::begin, btrace_call_iterator::btinfo, btrace_call_end(), btrace_call_history(), btrace_call_next(), btrace_call_number(), btrace_call_prev(), btrace_set_call_history(), btrace_thread_info::call_history, current_uiout, DEBUG, do_cleanups(), btrace_call_history::end, error(), btrace_insn_iterator::function, btrace_call_iterator::function, make_cleanup_ui_out_tuple_begin_end(), printf_unfiltered(), btrace_thread_info::replay, and require_btrace().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1086 of file record-btrace.c.
References _, error(), from, record_btrace_call_history_range(), and ULONGEST_MAX.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1033 of file record-btrace.c.
References _, btrace_call_end(), btrace_call_history(), btrace_call_next(), btrace_find_call_by_number(), btrace_set_call_history(), current_uiout, DEBUG, do_cleanups(), error(), from, make_cleanup_ui_out_tuple_begin_end(), require_btrace(), and to.
Referenced by init_record_btrace_ops(), and record_btrace_call_history_from().
|
static |
Definition at line 2102 of file record-btrace.c.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1893 of file record-btrace.c.
References btrace_thread_info::call_history, btrace_thread_info::insn_history, and xfree().
Referenced by record_btrace_set_replay(), and record_btrace_wait().
|
static |
Definition at line 265 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, btrace_teardown(), delete_async_event_handler(), and record_btrace_auto_disable().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 160 of file record-btrace.c.
References btrace_disable().
Referenced by record_btrace_open().
|
static |
Definition at line 2290 of file record-btrace.c.
References record_btrace_generating_corefile.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 144 of file record-btrace.c.
References btrace_enable(), CATCH, END_CATCH, error(), record_btrace_conf, RETURN_MASK_ERROR, TRY, and warning().
Referenced by record_btrace_auto_enable().
|
static |
Definition at line 2274 of file record-btrace.c.
References record_btrace_resume_exec_dir.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1251 of file record-btrace.c.
References target_ops::beneath, thread_info::btrace, btrace_insn_get(), find_thread_ptid(), gdb_assert, gdbarch_pc_regnum(), get_regcache_arch(), inferior_ptid, btrace_insn::pc, record_btrace_generating_corefile, regcache_raw_supply(), btrace_thread_info::replay, and target_ops::to_fetch_registers.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1665 of file record-btrace.c.
References find_thread_ptid(), inferior_ptid, minus_one_ptid, ptid_equal(), and ptid_is_pid().
Referenced by record_btrace_resume().
|
static |
Definition at line 1848 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, BTHR_MOVE, thread_info::btrace, find_thread_ptid(), and btrace_thread_info::flags.
Referenced by record_btrace_wait().
|
static |
Definition at line 1584 of file record-btrace.c.
References bfcache, and gdb_assert.
|
static |
Definition at line 1449 of file record-btrace.c.
References _, btrace_frame_cache::bfun, BFUN_UP_LINKS_TO_RET, btrace_get_bfun_name(), core_addr_to_string_nz(), DEBUG, btrace_function::flags, frame_unwind_got_address(), gdb_assert, gdb_insn_length(), gdbarch_pc_regnum(), get_frame_arch(), btrace_function::level, NOT_AVAILABLE_ERROR, btrace_insn::pc, throw_error(), btrace_function::up, VEC_index, and VEC_last.
|
static |
Definition at line 1498 of file record-btrace.c.
References bfcache_new(), btrace_frame_cache::bfun, BFUN_UP_LINKS_TO_TAILCALL, thread_info::btrace, btrace_get_bfun_name(), btrace_get_frame_function(), DEBUG, find_thread_ptid(), btrace_function::flags, btrace_insn_iterator::function, gdb_assert, get_next_frame(), inferior_ptid, btrace_function::level, frame_info::next, btrace_thread_info::replay, btrace_frame_cache::tp, and btrace_function::up.
|
static |
Definition at line 1420 of file record-btrace.c.
References btrace_frame_cache::bfun, btrace_get_bfun_name(), code, frame_id::code_addr, core_addr_to_string_nz(), DEBUG, frame_id_build_unavailable_stack_special(), gdb_assert, get_frame_func(), btrace_function::number, btrace_func_link::prev, btrace_function::segment, and frame_id::special_addr.
|
static |
Definition at line 1401 of file record-btrace.c.
References btrace_frame_cache::bfun, gdb_assert, and btrace_function::up.
|
static |
Definition at line 2249 of file record-btrace.c.
References _, thread_info::btrace, btrace_find_insn_by_number(), error(), record_btrace_set_replay(), and require_btrace_thread().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2223 of file record-btrace.c.
References btrace_insn_begin(), record_btrace_set_replay(), and require_btrace_thread().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2237 of file record-btrace.c.
References record_btrace_set_replay(), and require_btrace_thread().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 198 of file record-btrace.c.
References INF_REG_EVENT, and inferior_event_handler().
Referenced by record_btrace_open().
|
static |
Definition at line 383 of file record-btrace.c.
References _, thread_info::btrace, btrace_call_end(), btrace_call_number(), btrace_call_prev(), btrace_conf(), btrace_fetch(), btrace_insn_end(), btrace_insn_number(), btrace_insn_prev(), btrace_is_empty(), btrace_is_replaying(), DEBUG, error(), find_thread_ptid(), inferior_ptid, btrace_thread_info::ngaps, thread_info::num, printf_unfiltered(), thread_info::ptid, record_btrace_print_conf(), btrace_thread_info::replay, and target_pid_to_str().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1189 of file record-btrace.c.
References target_ops::beneath, CATCH, END_CATCH, replay_memory_access, replay_memory_access_read_write, RETURN_MASK_ALL, throw_exception(), target_ops::to_insert_breakpoint, and TRY.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 585 of file record-btrace.c.
References _, btrace_insn_history::begin, btrace_insn_end(), btrace_insn_history(), btrace_insn_next(), btrace_insn_number(), btrace_insn_prev(), btrace_set_insn_history(), current_uiout, DEBUG, do_cleanups(), btrace_insn_history::end, error(), btrace_thread_info::insn_history, make_cleanup_ui_out_tuple_begin_end(), printf_unfiltered(), btrace_thread_info::replay, and require_btrace().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 724 of file record-btrace.c.
References _, error(), from, record_btrace_insn_history_range(), and ULONGEST_MAX.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 671 of file record-btrace.c.
References _, btrace_find_insn_by_number(), btrace_insn_end(), btrace_insn_history(), btrace_insn_next(), btrace_set_insn_history(), current_uiout, DEBUG, do_cleanups(), error(), from, make_cleanup_ui_out_tuple_begin_end(), require_btrace(), and to.
Referenced by init_record_btrace_ops(), and record_btrace_insn_history_from().
|
static |
Definition at line 1120 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, and btrace_is_replaying().
Referenced by init_record_btrace_ops(), record_btrace_prepare_to_store(), record_btrace_resume(), record_btrace_stopped_by_hw_breakpoint(), record_btrace_stopped_by_sw_breakpoint(), record_btrace_store_registers(), record_btrace_supports_stopped_by_hw_breakpoint(), record_btrace_supports_stopped_by_sw_breakpoint(), record_btrace_thread_alive(), record_btrace_update_thread_list(), record_btrace_wait(), and record_btrace_xfer_partial().
Definition at line 206 of file record-btrace.c.
References _, ALL_NON_EXITED_THREADS, btrace_enable(), create_async_event_handler(), current_inferior(), DEBUG, discard_cleanups(), error(), gdb_assert, make_cleanup(), non_stop, null_cleanup(), thread_info::num, number_is_in_list(), observer_notify_record_changed(), push_target(), record_btrace_auto_enable(), record_btrace_conf, record_btrace_disable_callback(), record_btrace_generating_corefile, record_btrace_handle_async_inferior_event(), record_btrace_ops, record_preopen(), and target_has_execution.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2282 of file record-btrace.c.
References record_btrace_generating_corefile.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1309 of file record-btrace.c.
References target_ops::beneath, record_btrace_generating_corefile, record_btrace_is_replaying(), and target_ops::to_prepare_to_store.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 326 of file record-btrace.c.
References _, printf_unfiltered(), record_btrace_adjust_size(), btrace_config_bts::size, and size.
Referenced by record_btrace_print_conf().
|
static |
Definition at line 358 of file record-btrace.c.
References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, btrace_format_string(), btrace_config::bts, btrace_config::format, internal_error(), printf_unfiltered(), btrace_config::pt, record_btrace_print_bts_conf(), and record_btrace_print_pt_conf().
Referenced by record_btrace_info().
|
static |
Definition at line 342 of file record-btrace.c.
References _, printf_unfiltered(), record_btrace_adjust_size(), btrace_config_pt::size, and size.
Referenced by record_btrace_print_conf().
|
static |
Definition at line 1220 of file record-btrace.c.
References target_ops::beneath, CATCH, END_CATCH, replay_memory_access, replay_memory_access_read_write, RETURN_MASK_ALL, throw_exception(), target_ops::to_remove_breakpoint, and TRY.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1794 of file record-btrace.c.
References _, ALL_NON_EXITED_THREADS, target_ops::beneath, BTHR_CONT, BTHR_RCONT, BTHR_RSTEP, BTHR_STEP, btrace_is_replaying(), DEBUG, error(), EXEC_REVERSE, execution_direction, mark_async_event_handler(), record_btrace_find_resume_thread(), record_btrace_is_replaying(), record_btrace_resume_exec_dir, record_btrace_resume_thread(), record_btrace_stop_replaying(), target_async, target_can_async_p, target_pid_to_str(), and target_ops::to_resume.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1644 of file record-btrace.c.
References _, BTHR_MOVE, thread_info::btrace, btrace_fetch(), DEBUG, error(), btrace_thread_info::flags, thread_info::num, thread_info::ptid, and target_pid_to_str().
Referenced by record_btrace_resume().
|
static |
Definition at line 2193 of file record-btrace.c.
References thread_info::btrace, btrace_insn_cmp(), btrace_insn_iterator::function, get_current_regcache(), get_selected_frame(), print_stack_frame(), thread_info::ptid, record_btrace_clear_histories(), record_btrace_start_replaying(), record_btrace_stop_replaying(), regcache_read_pc(), registers_changed_ptid(), btrace_thread_info::replay, SRC_AND_LOC, and stop_pc.
Referenced by record_btrace_goto(), record_btrace_goto_begin(), and record_btrace_goto_end().
|
static |
Definition at line 1679 of file record-btrace.c.
References _, btrace_thread_info::begin, thread_info::btrace, btrace_insn_end(), btrace_insn_get(), btrace_insn_prev(), CATCH, thread_info::control, END_CATCH, error(), frame_id_eq(), gdb_assert, get_current_frame(), get_frame_id(), is_executing(), thread_info::ptid, registers_changed_ptid(), btrace_thread_info::replay, RETURN_MASK_ALL, set_executing(), thread_control_state::step_frame_id, thread_control_state::step_stack_frame_id, throw_exception(), TRY, xfree(), and xmalloc().
Referenced by record_btrace_set_replay(), and record_btrace_step_thread().
|
static |
Definition at line 1905 of file record-btrace.c.
References _, inferior::aspace, BTHR_CONT, BTHR_MOVE, BTHR_RCONT, BTHR_RSTEP, BTHR_STEP, btrace_insn_cmp(), btrace_insn_end(), btrace_insn_get(), btrace_insn_next(), btrace_insn_prev(), btrace_is_empty(), btrace_step_no_history(), btrace_step_stopped(), core_addr_to_string_nz(), DEBUG, find_inferior_ptid(), btrace_thread_info::flags, flags, arm-linux::inf, internal_error(), btrace_insn::pc, record_btrace_start_replaying(), record_btrace_stop_replaying(), record_check_stopped_by_breakpoint(), btrace_thread_info::replay, btrace_thread_info::stop_reason, and target_pid_to_str().
Referenced by record_btrace_wait().
|
static |
Definition at line 249 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, thread_info::btrace, btrace_disable(), DEBUG, record_btrace_auto_disable(), and btrace_thread_info::target.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1778 of file record-btrace.c.
References thread_info::btrace, thread_info::ptid, registers_changed_ptid(), btrace_thread_info::replay, and xfree().
Referenced by record_btrace_resume(), record_btrace_set_replay(), and record_btrace_step_thread().
|
static |
Definition at line 2137 of file record-btrace.c.
References target_ops::beneath, thread_info::btrace, inferior_thread(), record_btrace_is_replaying(), btrace_thread_info::stop_reason, TARGET_STOPPED_BY_HW_BREAKPOINT, and target_ops::to_stopped_by_hw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2110 of file record-btrace.c.
References target_ops::beneath, thread_info::btrace, inferior_thread(), record_btrace_is_replaying(), btrace_thread_info::stop_reason, TARGET_STOPPED_BY_SW_BREAKPOINT, and target_ops::to_stopped_by_sw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1292 of file record-btrace.c.
References _, target_ops::beneath, error(), gdb_assert, may_write_registers, record_btrace_generating_corefile, record_btrace_is_replaying(), and target_ops::to_store_registers.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2153 of file record-btrace.c.
References target_ops::beneath, record_btrace_is_replaying(), and target_ops::to_supports_stopped_by_hw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2126 of file record-btrace.c.
References target_ops::beneath, record_btrace_is_replaying(), and target_ops::to_supports_stopped_by_sw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1548 of file record-btrace.c.
References bfcache_new(), btrace_frame_cache::bfun, BFUN_UP_LINKS_TO_TAILCALL, btrace_get_bfun_name(), btrace_get_frame_function(), DEBUG, find_thread_ptid(), btrace_function::flags, get_next_frame(), inferior_ptid, btrace_function::level, frame_info::next, btrace_frame_cache::tp, and btrace_function::up.
|
static |
Definition at line 2178 of file record-btrace.c.
References target_ops::beneath, find_thread_ptid(), record_btrace_is_replaying(), and target_ops::to_thread_alive.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1636 of file record-btrace.c.
References record_btrace_tailcall_frame_unwind.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1628 of file record-btrace.c.
References record_btrace_frame_unwind.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2164 of file record-btrace.c.
References target_ops::beneath, record_btrace_is_replaying(), and target_ops::to_update_thread_list.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2058 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, target_ops::beneath, BTHR_MOVE, thread_info::btrace, DEBUG, EXEC_REVERSE, execution_direction, btrace_thread_info::flags, target_waitstatus::kind, minus_one_ptid, non_stop, thread_info::ptid, record_btrace_clear_histories(), record_btrace_find_thread_to_move(), record_btrace_is_replaying(), record_btrace_step_thread(), registers_changed_ptid(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, and target_ops::to_wait.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1134 of file record-btrace.c.
References target_ops::beneath, target_section::endaddr, len, min, record_btrace_generating_corefile, record_btrace_is_replaying(), replay_memory_access, replay_memory_access_read_only, TARGET_OBJECT_MEMORY, target_section_by_addr(), TARGET_XFER_UNAVAILABLE, target_section::the_bfd_section, and target_ops::to_xfer_partial.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 132 of file record-btrace.c.
References thread_info::btrace, and require_btrace_thread().
Referenced by record_btrace_call_history(), record_btrace_call_history_range(), record_btrace_insn_history(), and record_btrace_insn_history_range().
|
static |
Definition at line 107 of file record-btrace.c.
References _, btrace_fetch(), btrace_is_empty(), DEBUG, error(), find_thread_ptid(), and inferior_ptid.
Referenced by record_btrace_goto(), record_btrace_goto_begin(), record_btrace_goto_end(), and require_btrace().
|
static |
Definition at line 2494 of file record-btrace.c.
References _, and fprintf_filtered().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2505 of file record-btrace.c.
References _, and fprintf_filtered().
Referenced by _initialize_record_btrace().
Definition at line 528 of file record-btrace.c.
References ui_out_field_fmt().
Referenced by btrace_call_history(), btrace_call_history_insn_range(), and btrace_insn_history().
|
static |
Definition at line 1337 of file record-btrace.c.
Referenced by _initialize_record_btrace(), bfcache_new(), btrace_get_frame_function(), and record_btrace_frame_dealloc_cache().
|
static |
Definition at line 68 of file record-btrace.c.
|
static |
Definition at line 77 of file record-btrace.c.
|
static |
Definition at line 74 of file record-btrace.c.
Referenced by _initialize_record_btrace(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), record_btrace_enable_warn(), and record_btrace_open().
const struct frame_unwind record_btrace_frame_unwind |
Definition at line 1603 of file record-btrace.c.
Referenced by dwarf2_frame_cfa(), and record_btrace_to_get_unwinder().
|
static |
Definition at line 71 of file record-btrace.c.
Referenced by record_btrace_done_generating_core(), record_btrace_fetch_registers(), record_btrace_open(), record_btrace_prepare_to_generate_core(), record_btrace_prepare_to_store(), record_btrace_store_registers(), and record_btrace_xfer_partial().
|
static |
Definition at line 42 of file record-btrace.c.
Referenced by _initialize_record_btrace(), init_record_btrace_ops(), and record_btrace_open().
|
static |
Definition at line 65 of file record-btrace.c.
Referenced by record_btrace_execution_direction(), and record_btrace_resume().
const struct frame_unwind record_btrace_tailcall_frame_unwind |
Definition at line 1614 of file record-btrace.c.
Referenced by dwarf2_frame_cfa(), and record_btrace_to_get_tailcall_unwinder().
|
static |
Definition at line 45 of file record-btrace.c.
|
static |
Definition at line 58 of file record-btrace.c.
Referenced by _initialize_record_btrace(), cmd_show_replay_memory_access(), record_btrace_insert_breakpoint(), record_btrace_remove_breakpoint(), and record_btrace_xfer_partial().
|
static |
Definition at line 48 of file record-btrace.c.
Referenced by record_btrace_xfer_partial().
|
static |
Definition at line 49 of file record-btrace.c.
Referenced by record_btrace_insert_breakpoint(), and record_btrace_remove_breakpoint().
Definition at line 50 of file record-btrace.c.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 80 of file record-btrace.c.
|
static |
Definition at line 61 of file record-btrace.c.
|
static |
Definition at line 84 of file record-btrace.c.
|
static |
Definition at line 81 of file record-btrace.c.
|
static |
Definition at line 62 of file record-btrace.c.
|
static |
Definition at line 85 of file record-btrace.c.