|
GDB (xrefs)
|
#include "defs.h"#include "record.h"#include "record-btrace.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"#include "vec.h"#include <algorithm>Go to the source code of this file.
Classes | |
| struct | btrace_line_range |
| struct | btrace_frame_cache |
Macros | |
| #define | DEBUG(msg, args...) |
Typedefs | |
| typedef struct thread_info * | tp_t |
| #define DEBUG | ( | msg, | |
| args... | |||
| ) |
Definition at line 93 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_cancel_resume(), 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_maybe_mark_async_event(), record_btrace_open(), record_btrace_resume(), record_btrace_resume_thread(), record_btrace_step_thread(), record_btrace_stop(), record_btrace_stop_recording(), record_btrace_tailcall_frame_sniffer(), record_btrace_wait(), and require_btrace_thread().
| typedef struct thread_info* tp_t |
Definition at line 2408 of file record-btrace.c.
| void _initialize_record_btrace | ( | void | ) |
Definition at line 3042 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_cmdlist, record_btrace_conf, record_btrace_ops, record_cmdlist, replay_memory_access, replay_memory_access_types, set_record_btrace_bts_cmdlist, set_record_btrace_cmdlist, set_record_btrace_pt_cmdlist, set_record_cmdlist, show_record_btrace_bts_cmdlist, show_record_btrace_cmdlist, show_record_btrace_pt_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().
|
static |
Definition at line 1509 of file record-btrace.c.
References btrace_frame_cache::frame.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 1498 of file record-btrace.c.
References btrace_frame_cache::frame.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 1522 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 1002 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, ui_out::field_string(), flags, btrace_config::format, gdb_assert, ui_out::is_mi_like_p(), 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::text(), and ui_out_field_uint().
Referenced by record_btrace_call_history(), and record_btrace_call_history_range().
|
static |
Definition at line 892 of file record-btrace.c.
References ui_out::begin(), ui_out::end(), gdb_assert, btrace_function::insn, btrace_function::insn_offset, size, ui_out::text(), and ui_out_field_uint().
Referenced by btrace_call_history().
|
static |
Definition at line 950 of file record-btrace.c.
References btrace_compute_src_line_range(), ui_out::field_int(), ui_out::field_string(), btrace_function::sym, symbol_symtab(), symtab_to_filename_for_display(), and ui_out::text().
Referenced by btrace_call_history().
|
static |
Definition at line 914 of file record-btrace.c.
References symtab_and_line::end, find_pc_line(), btrace_function::insn, INT_MAX, INT_MIN, btrace_insn::pc, btrace_function::sym, and symbol_symtab().
Referenced by btrace_call_history_src_line().
|
static |
Definition at line 562 of file record-btrace.c.
References btrace_line_range_add(), btrace_mk_line_range(), find_pc_line_symtab(), linetable::item, linetable::nitems, symtab::nlines, range, btrace_line_range::symtab, and SYMTAB_LINETABLE.
Referenced by btrace_insn_history().
|
static |
Definition at line 980 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 1540 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 630 of file record-btrace.c.
References disasm_insn::addr, btrace_line_range::begin, btrace_conf(), btrace_find_line_range(), btrace_insn_cmp(), BTRACE_INSN_FLAG_SPECULATIVE, btrace_insn_get(), btrace_insn_get_error(), btrace_insn_next(), btrace_insn_number(), btrace_line_range_contains_range(), btrace_line_range_is_empty(), btrace_mk_line_range(), btrace_print_lines(), btrace_ui_out_decode_error(), DEBUG, DISASSEMBLY_SOURCE, DISASSEMBLY_SPECULATIVE, do_cleanups(), btrace_line_range::end, ui_out::field_fmt(), btrace_insn::flags, flags, btrace_config::format, gdb_assert, disasm_insn::is_speculative, make_cleanup_ui_out_list_begin_end(), make_cleanup_ui_out_tuple_begin_end(), memset(), disasm_insn::number, btrace_insn::pc, gdb_pretty_print_disassembler::pretty_print_insn(), target_gdbarch(), and ui_out::text().
Referenced by record_btrace_insn_history(), and record_btrace_insn_history_range().
|
static |
Definition at line 524 of file record-btrace.c.
References range.
Referenced by btrace_find_line_range().
|
static |
Definition at line 551 of file record-btrace.c.
References btrace_line_range::begin, btrace_line_range::end, and btrace_line_range::symtab.
Referenced by btrace_insn_history().
|
static |
Definition at line 543 of file record-btrace.c.
Referenced by btrace_insn_history().
|
static |
Definition at line 510 of file record-btrace.c.
References btrace_line_range::begin, btrace_line_range::end, range, and btrace_line_range::symtab.
Referenced by btrace_find_line_range(), and btrace_insn_history().
|
static |
Definition at line 603 of file record-btrace.c.
References btrace_line_range::begin, DISASSEMBLY_FILENAME, do_cleanups(), btrace_line_range::end, flags, make_cleanup_ui_out_list_begin_end(), make_cleanup_ui_out_tuple_begin_end(), print_source_lines(), PRINT_SOURCE_LINES_FILENAME, and btrace_line_range::symtab.
Referenced by btrace_insn_history().
|
static |
Definition at line 2192 of file record-btrace.c.
References status, and TARGET_WAITKIND_IGNORE.
Referenced by record_btrace_step_thread().
|
static |
Definition at line 2129 of file record-btrace.c.
References status, and TARGET_WAITKIND_NO_HISTORY.
Referenced by record_btrace_single_step_backward(), record_btrace_single_step_forward(), record_btrace_step_thread(), and record_btrace_wait().
|
static |
Definition at line 2180 of file record-btrace.c.
References status, and TARGET_WAITKIND_NO_RESUMED.
Referenced by record_btrace_wait().
|
static |
Definition at line 2168 of file record-btrace.c.
References status, and TARGET_WAITKIND_SPURIOUS.
Referenced by record_btrace_single_step_backward(), and record_btrace_single_step_forward().
|
static |
Definition at line 2141 of file record-btrace.c.
References status, and TARGET_WAITKIND_STOPPED.
Referenced by record_btrace_single_step_backward(), record_btrace_single_step_forward(), and record_btrace_step_thread().
|
static |
Definition at line 2155 of file record-btrace.c.
References status, and TARGET_WAITKIND_STOPPED.
Referenced by record_btrace_step_thread().
|
static |
Definition at line 1809 of file record-btrace.c.
References BTHR_CONT, BTHR_RCONT, BTHR_RSTEP, BTHR_STEP, and BTHR_STOP.
Referenced by record_btrace_cancel_resume(), record_btrace_resume_thread(), and record_btrace_step_thread().
|
static |
Definition at line 468 of file record-btrace.c.
References _, btrace_decode_error(), BTRACE_FORMAT_PT, ui_out::field_int(), and ui_out::text().
Referenced by btrace_call_history(), and btrace_insn_history().
|
static |
Definition at line 2880 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 2902 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 2924 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 2956 of file record-btrace.c.
References cmd_show_list(), and set_record_btrace_cmdlist.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2982 of file record-btrace.c.
References _, all_commands, gdb_stdout, help_list(), printf_unfiltered(), and set_record_btrace_bts_cmdlist.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 3001 of file record-btrace.c.
References _, all_commands, gdb_stdout, help_list(), printf_unfiltered(), and set_record_btrace_pt_cmdlist.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2964 of file record-btrace.c.
References cmd_show_list(), and show_record_btrace_cmdlist.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2993 of file record-btrace.c.
References cmd_show_list(), and show_record_btrace_bts_cmdlist.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 3012 of file record-btrace.c.
References cmd_show_list(), and show_record_btrace_pt_cmdlist.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 2972 of file record-btrace.c.
References _, fprintf_filtered(), gdb_stdout, and replay_memory_access.
Referenced by _initialize_record_btrace().
| DEF_VEC_P | ( | tp_t | ) |
|
static |
Definition at line 1856 of file record-btrace.c.
References CATCH, END_CATCH, get_current_frame(), inferior_ptid, is_executing(), thread_info::ptid, RETURN_MASK_ALL, set_executing(), throw_exception(), and TRY.
Referenced by record_btrace_start_replaying().
|
static |
Definition at line 2819 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_commit_resume(), record_btrace_disconnect(), 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_record_method(), record_btrace_remove_breakpoint(), record_btrace_resume(), record_btrace_stop(), record_btrace_stop_recording(), record_btrace_stop_replaying_all(), 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_will_replay(), record_btrace_xfer_partial(), record_detach(), 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_commit_resume, 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_record_method, target_ops::to_record_stop_replaying, target_ops::to_record_will_replay, target_ops::to_remove_breakpoint, target_ops::to_resume, target_ops::to_shortname, target_ops::to_stop, 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().
|
static |
Definition at line 324 of file record-btrace.c.
References size.
Referenced by record_btrace_print_bts_conf(), and record_btrace_print_pt_conf().
|
static |
Definition at line 311 of file record-btrace.c.
References target_ops::beneath, clear_async_event_handler(), enable, mark_async_event_handler(), record_btrace_async_inferior_event_handler, and target_ops::to_async.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 186 of file record-btrace.c.
References DEBUG, observer_detach_new_thread(), and record_btrace_thread_observer.
Referenced by record_btrace_close(), and record_btrace_stop_recording().
|
static |
Definition at line 175 of file record-btrace.c.
References DEBUG, observer_attach_new_thread(), record_btrace_enable_warn(), and record_btrace_thread_observer.
Referenced by record_btrace_push_target().
|
static |
Definition at line 1077 of file record-btrace.c.
References _, btrace_call_history::begin, btrace_insn_iterator::btinfo, 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, btrace_insn_iterator::call_index, current_uiout, DEBUG, btrace_call_history::end, error(), flags, btrace_call_iterator::index, printf_unfiltered(), btrace_thread_info::replay, require_btrace(), and size.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1214 of file record-btrace.c.
References _, ui_out::begin(), ui_out::end(), error(), flags, record_btrace_call_history_range(), size, and ULONGEST_MAX.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1164 of file record-btrace.c.
References _, ui_out::begin(), btrace_call_end(), btrace_call_history(), btrace_call_next(), btrace_find_call_by_number(), btrace_set_call_history(), current_uiout, DEBUG, ui_out::end(), error(), flags, and require_btrace().
Referenced by init_record_btrace_ops(), and record_btrace_call_history_from().
|
static |
Definition at line 2599 of file record-btrace.c.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2109 of file record-btrace.c.
References BTHR_MOVE, BTHR_STOP, btrace_thread_flag_to_str(), DEBUG, flags, print_thread_id(), thread_info::ptid, record_btrace_stop_replaying_at_end(), and target_pid_to_str().
Referenced by record_btrace_wait().
|
static |
Definition at line 2204 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 291 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, btrace_teardown(), delete_async_event_handler(), record_btrace_async_inferior_event_handler, and record_btrace_auto_disable().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2099 of file record-btrace.c.
References target_ops::beneath, EXEC_REVERSE, execution_direction, minus_one_ptid, record_btrace_is_replaying(), and target_ops::to_commit_resume.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 165 of file record-btrace.c.
References btrace_disable().
Referenced by record_btrace_open().
|
static |
Definition at line 276 of file record-btrace.c.
References target_ops::beneath, target_ops::to_disconnect, and unpush_target().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2811 of file record-btrace.c.
References record_btrace_generating_corefile.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 149 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 2795 of file record-btrace.c.
References record_btrace_resume_exec_dir.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1405 of file record-btrace.c.
References regcache::arch(), target_ops::beneath, btrace_insn_get(), find_thread_ptid(), gdb_assert, gdbarch_pc_regnum(), btrace_insn::pc, record_btrace_generating_corefile, regcache_get_ptid(), regcache_raw_supply(), and target_ops::to_fetch_registers.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1749 of file record-btrace.c.
References bfcache, and gdb_assert.
|
static |
Definition at line 1608 of file record-btrace.c.
References _, btrace_frame_cache::bfun, BFUN_UP_LINKS_TO_RET, btrace_call_get(), btrace_find_call_by_number(), 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::insn, btrace_function::level, NOT_AVAILABLE_ERROR, regnum, throw_error(), btrace_frame_cache::tp, and btrace_function::up.
|
static |
Definition at line 1653 of file record-btrace.c.
References bfcache_new(), btrace_frame_cache::bfun, BFUN_UP_LINKS_TO_TAILCALL, btrace_insn_iterator::btinfo, btrace_call_get(), btrace_find_call_by_number(), btrace_get_bfun_name(), btrace_get_frame_function(), btrace_insn_iterator::call_index, DEBUG, find_thread_ptid(), btrace_thread_info::functions, gdb_assert, get_next_frame(), inferior_ptid, btrace_function::level, frame_info::next, and btrace_frame_cache::tp.
|
static |
Definition at line 1578 of file record-btrace.c.
References btrace_frame_cache::bfun, btrace_call_get(), btrace_find_call_by_number(), 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_function::prev, frame_id::special_addr, and btrace_frame_cache::tp.
|
static |
Definition at line 1559 of file record-btrace.c.
References btrace_frame_cache::bfun, gdb_assert, and btrace_function::up.
|
static |
Definition at line 2757 of file record-btrace.c.
References _, btrace_find_insn_by_number(), btrace_insn_get(), error(), record_btrace_set_replay(), and require_btrace_thread().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2720 of file record-btrace.c.
References _, btrace_insn_begin(), btrace_insn_get(), btrace_insn_next(), error(), record_btrace_set_replay(), and require_btrace_thread().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2745 of file record-btrace.c.
References record_btrace_set_replay(), and require_btrace_thread().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 201 of file record-btrace.c.
References INF_REG_EVENT, and inferior_event_handler().
Referenced by record_btrace_push_target().
|
static |
Definition at line 409 of file record-btrace.c.
References _, btrace_insn_iterator::btinfo, btrace_call_end(), btrace_call_number(), btrace_call_prev(), btrace_conf(), btrace_fetch(), btrace_insn_end(), btrace_insn_get(), btrace_insn_number(), btrace_is_empty(), btrace_is_replaying(), DEBUG, error(), find_thread_ptid(), inferior_ptid, btrace_thread_info::ngaps, print_thread_id(), printf_unfiltered(), thread_info::ptid, record_btrace_print_conf(), btrace_thread_info::replay, target_pid_to_str(), and validate_registers_access().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1341 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 724 of file record-btrace.c.
References _, btrace_insn_history::begin, btrace_insn_iterator::btinfo, btrace_insn_end(), btrace_insn_history(), btrace_insn_next(), btrace_insn_number(), btrace_insn_prev(), btrace_set_insn_history(), current_uiout, DEBUG, btrace_insn_history::end, error(), flags, btrace_thread_info::insn_history, printf_unfiltered(), btrace_thread_info::replay, require_btrace(), and size.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 857 of file record-btrace.c.
References _, ui_out::begin(), ui_out::end(), error(), flags, record_btrace_insn_history_range(), size, and ULONGEST_MAX.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 808 of file record-btrace.c.
References _, ui_out::begin(), btrace_find_insn_by_number(), btrace_insn_end(), btrace_insn_history(), btrace_insn_next(), btrace_set_insn_history(), current_uiout, DEBUG, ui_out::end(), error(), flags, and require_btrace().
Referenced by init_record_btrace_ops(), and record_btrace_insn_history_from().
|
static |
Definition at line 1266 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, btrace_is_replaying(), thread_info::ptid, and ptid_match().
Referenced by init_record_btrace_ops(), record_btrace_commit_resume(), record_btrace_prepare_to_store(), record_btrace_resume(), record_btrace_stop(), 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(), record_btrace_will_replay(), and record_btrace_xfer_partial().
|
static |
Definition at line 2414 of file record-btrace.c.
References DEBUG, mark_async_event_handler(), record_btrace_async_inferior_event_handler, and VEC_empty.
Referenced by record_btrace_wait().
|
static |
Definition at line 229 of file record-btrace.c.
References _, ALL_NON_EXITED_THREADS, btrace_enable(), DEBUG, discard_cleanups(), error(), gdb_assert, thread_info::global_num, make_cleanup(), null_cleanup(), number_is_in_list(), record_btrace_conf, record_btrace_disable_callback(), record_btrace_push_target(), record_btrace_thread_observer, record_preopen(), and target_has_execution.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2803 of file record-btrace.c.
References record_btrace_generating_corefile.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1464 of file record-btrace.c.
References target_ops::beneath, record_btrace_generating_corefile, record_btrace_is_replaying(), regcache_get_ptid(), and target_ops::to_prepare_to_store.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 352 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 384 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 368 of file record-btrace.c.
References _, printf_unfiltered(), record_btrace_adjust_size(), btrace_config_pt::size, and size.
Referenced by record_btrace_print_conf().
| void record_btrace_push_target | ( | void | ) |
Definition at line 209 of file record-btrace.c.
References btrace_format_short_string(), create_async_event_handler(), current_inferior(), btrace_config::format, observer_notify_record_changed(), push_target(), record_btrace_async_inferior_event_handler, record_btrace_auto_enable(), record_btrace_conf, record_btrace_generating_corefile, record_btrace_handle_async_inferior_event(), and record_btrace_ops.
Referenced by record_btrace_open(), and remote_btrace_maybe_reopen().
|
static |
Definition at line 1250 of file record-btrace.c.
References _, error(), find_thread_ptid(), thread_info::ptid, RECORD_METHOD_BTRACE, and RECORD_METHOD_NONE.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1372 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 2216 of file record-btrace.c.
References btrace_insn_get(), find_inferior_ptid(), arm-linux::inf, btrace_insn::pc, thread_info::ptid, record_check_stopped_by_breakpoint(), btrace_thread_info::replay, and btrace_thread_info::stop_reason.
Referenced by record_btrace_single_step_backward(), and record_btrace_single_step_forward().
|
static |
Definition at line 2023 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, target_ops::beneath, BTHR_CONT, BTHR_RCONT, BTHR_RSTEP, BTHR_STEP, DEBUG, EXEC_REVERSE, execution_direction, gdb_assert, inferior_ptid, mark_async_event_handler(), minus_one_ptid, thread_info::ptid, ptid_match(), record_btrace_async_inferior_event_handler, record_btrace_is_replaying(), record_btrace_resume_exec_dir, record_btrace_resume_thread(), target_async(), target_can_async_p, target_is_non_stop_p(), target_pid_to_str(), and target_ops::to_resume.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1835 of file record-btrace.c.
References BTHR_MOVE, BTHR_STOP, btrace_fetch(), btrace_thread_flag_to_str(), DEBUG, btrace_thread_info::flags, print_thread_id(), thread_info::ptid, and target_pid_to_str().
Referenced by record_btrace_resume().
|
static |
Definition at line 2690 of file record-btrace.c.
References btrace_insn_cmp(), 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 2293 of file record-btrace.c.
References btrace_insn_get(), btrace_insn_prev(), btrace_step_no_history(), btrace_step_spurious(), btrace_step_stopped(), record_btrace_replay_at_breakpoint(), record_btrace_start_replaying(), and btrace_thread_info::replay.
Referenced by record_btrace_step_thread().
|
static |
Definition at line 2244 of file record-btrace.c.
References btrace_insn_cmp(), btrace_insn_end(), btrace_insn_get(), btrace_insn_next(), btrace_step_no_history(), btrace_step_spurious(), btrace_step_stopped(), record_btrace_replay_at_breakpoint(), and btrace_thread_info::replay.
Referenced by record_btrace_step_thread().
|
static |
Definition at line 1905 of file record-btrace.c.
References _, btrace_insn_end(), btrace_insn_get(), btrace_insn_prev(), CATCH, thread_info::control, END_CATCH, error(), frame_id_eq(), btrace_thread_info::functions, gdb_assert, get_frame_id(), get_thread_current_frame(), thread_info::ptid, registers_changed_ptid(), btrace_thread_info::replay, RETURN_MASK_ALL, thread_control_state::step_frame_id, thread_control_state::step_stack_frame_id, throw_exception(), TRY, xfree(), and XNEW.
Referenced by record_btrace_set_replay(), and record_btrace_single_step_backward().
|
static |
Definition at line 2340 of file record-btrace.c.
References _, BTHR_CONT, BTHR_MOVE, BTHR_RCONT, BTHR_RSTEP, BTHR_STEP, BTHR_STOP, btrace_is_empty(), btrace_step_again(), btrace_step_no_history(), btrace_step_stopped(), btrace_step_stopped_on_request(), btrace_thread_flag_to_str(), DEBUG, btrace_thread_info::flags, flags, internal_error(), print_thread_id(), record_btrace_single_step_backward(), record_btrace_single_step_forward(), status, target_pid_to_str(), TARGET_WAITKIND_NO_HISTORY, and TARGET_WAITKIND_SPURIOUS.
Referenced by record_btrace_wait().
|
static |
Definition at line 2572 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, target_ops::beneath, BTHR_MOVE, BTHR_STOP, DEBUG, EXEC_REVERSE, execution_direction, minus_one_ptid, thread_info::ptid, ptid_match(), record_btrace_is_replaying(), target_pid_to_str(), and target_ops::to_stop.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 260 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, btrace_disable(), DEBUG, and record_btrace_auto_disable().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1987 of file record-btrace.c.
References thread_info::ptid, registers_changed_ptid(), btrace_thread_info::replay, and xfree().
Referenced by record_btrace_set_replay(), record_btrace_stop_replaying_all(), and record_btrace_stop_replaying_at_end().
|
static |
Definition at line 2784 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, and record_btrace_stop_replaying().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2003 of file record-btrace.c.
References btrace_insn_cmp(), btrace_insn_end(), record_btrace_stop_replaying(), and btrace_thread_info::replay.
Referenced by record_btrace_cancel_resume(), and record_btrace_wait().
|
static |
Definition at line 2634 of file record-btrace.c.
References target_ops::beneath, inferior_thread(), minus_one_ptid, record_btrace_is_replaying(), TARGET_STOPPED_BY_HW_BREAKPOINT, and target_ops::to_stopped_by_hw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2607 of file record-btrace.c.
References target_ops::beneath, inferior_thread(), minus_one_ptid, record_btrace_is_replaying(), TARGET_STOPPED_BY_SW_BREAKPOINT, and target_ops::to_stopped_by_sw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1446 of file record-btrace.c.
References _, target_ops::beneath, error(), gdb_assert, may_write_registers, record_btrace_generating_corefile, record_btrace_is_replaying(), regcache_get_ptid(), and target_ops::to_store_registers.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2650 of file record-btrace.c.
References target_ops::beneath, minus_one_ptid, record_btrace_is_replaying(), and target_ops::to_supports_stopped_by_hw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2623 of file record-btrace.c.
References target_ops::beneath, minus_one_ptid, record_btrace_is_replaying(), and target_ops::to_supports_stopped_by_sw_breakpoint.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1709 of file record-btrace.c.
References bfcache_new(), btrace_frame_cache::bfun, BFUN_UP_LINKS_TO_TAILCALL, btrace_call_get(), btrace_find_call_by_number(), 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, thread_info::next, btrace_frame_cache::tp, and btrace_function::up.
|
static |
Definition at line 2675 of file record-btrace.c.
References target_ops::beneath, find_thread_ptid(), minus_one_ptid, thread_info::ptid, record_btrace_is_replaying(), and target_ops::to_thread_alive.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1801 of file record-btrace.c.
References record_btrace_tailcall_frame_unwind.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1793 of file record-btrace.c.
References record_btrace_frame_unwind.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2661 of file record-btrace.c.
References target_ops::beneath, minus_one_ptid, record_btrace_is_replaying(), and target_ops::to_update_thread_list.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 2437 of file record-btrace.c.
References ALL_NON_EXITED_THREADS, target_ops::beneath, BTHR_MOVE, BTHR_STOP, btrace_step_no_history(), btrace_step_no_resumed(), DEBUG, do_cleanups(), EXEC_REVERSE, execution_direction, gdb_assert, make_cleanup(), minus_one_ptid, null_cleanup(), null_ptid, print_thread_id(), thread_info::ptid, ptid_match(), record_btrace_cancel_resume(), record_btrace_clear_histories(), record_btrace_is_replaying(), record_btrace_maybe_mark_async_event(), record_btrace_step_thread(), record_btrace_stop_replaying_at_end(), registers_changed_ptid(), status, target_is_async_p, target_is_non_stop_p(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_HISTORY, target_waitstatus_to_string(), target_ops::to_wait, VEC, VEC_cleanup, VEC_empty, VEC_iterate, VEC_ordered_remove, VEC_safe_push, and VEC_unordered_remove.
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1280 of file record-btrace.c.
References EXEC_REVERSE, thread_info::ptid, and record_btrace_is_replaying().
Referenced by init_record_btrace_ops().
|
static |
Definition at line 1288 of file record-btrace.c.
References target_ops::beneath, target_section::endaddr, inferior_ptid, offset, 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 137 of file record-btrace.c.
References 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 110 of file record-btrace.c.
References _, btrace_fetch(), btrace_is_empty(), DEBUG, error(), find_thread_ptid(), inferior_ptid, and validate_registers_access().
Referenced by record_btrace_goto(), record_btrace_goto_begin(), record_btrace_goto_end(), and require_btrace().
|
static |
Definition at line 3020 of file record-btrace.c.
References _, and fprintf_filtered().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 3031 of file record-btrace.c.
References _, and fprintf_filtered().
Referenced by _initialize_record_btrace().
|
static |
Definition at line 488 of file record-btrace.c.
References ui_out::field_fmt().
Referenced by btrace_call_history(), and btrace_call_history_insn_range().
|
static |
Definition at line 1493 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 71 of file record-btrace.c.
Referenced by record_btrace_async(), record_btrace_close(), record_btrace_maybe_mark_async_event(), record_btrace_push_target(), and record_btrace_resume().
|
static |
Definition at line 80 of file record-btrace.c.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 77 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(), record_btrace_open(), and record_btrace_push_target().
| const struct frame_unwind record_btrace_frame_unwind |
Definition at line 1768 of file record-btrace.c.
Referenced by dwarf2_frame_cfa(), and record_btrace_to_get_unwinder().
|
static |
Definition at line 74 of file record-btrace.c.
Referenced by record_btrace_done_generating_core(), record_btrace_fetch_registers(), record_btrace_prepare_to_generate_core(), record_btrace_prepare_to_store(), record_btrace_push_target(), record_btrace_store_registers(), and record_btrace_xfer_partial().
|
static |
Definition at line 45 of file record-btrace.c.
Referenced by _initialize_record_btrace(), init_record_btrace_ops(), and record_btrace_push_target().
|
static |
Definition at line 68 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 1779 of file record-btrace.c.
Referenced by dwarf2_frame_cfa(), and record_btrace_to_get_tailcall_unwinder().
|
static |
Definition at line 48 of file record-btrace.c.
Referenced by record_btrace_auto_disable(), record_btrace_auto_enable(), and record_btrace_open().
|
static |
Definition at line 61 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 51 of file record-btrace.c.
Referenced by record_btrace_xfer_partial().
|
static |
Definition at line 52 of file record-btrace.c.
Referenced by record_btrace_insert_breakpoint(), and record_btrace_remove_breakpoint().
|
static |
Definition at line 53 of file record-btrace.c.
Referenced by _initialize_record_btrace().
|
static |
Definition at line 83 of file record-btrace.c.
Referenced by _initialize_record_btrace(), and cmd_set_record_btrace_bts().
|
static |
Definition at line 64 of file record-btrace.c.
Referenced by _initialize_record_btrace(), and cmd_set_record_btrace().
|
static |
Definition at line 87 of file record-btrace.c.
Referenced by _initialize_record_btrace(), and cmd_set_record_btrace_pt().
|
static |
Definition at line 84 of file record-btrace.c.
Referenced by _initialize_record_btrace(), and cmd_show_record_btrace_bts().
|
static |
Definition at line 65 of file record-btrace.c.
Referenced by _initialize_record_btrace(), and cmd_show_record_btrace().
|
static |
Definition at line 88 of file record-btrace.c.
Referenced by _initialize_record_btrace(), and cmd_show_record_btrace_pt().
1.8.14