GDB (xrefs)
|
#include "symtab.h"
Go to the source code of this file.
Enumerations | |
enum | exec_direction_kind { EXEC_FORWARD, EXEC_REVERSE } |
enum exec_direction_kind |
void clear_exit_convenience_vars | ( | void | ) |
Definition at line 7550 of file infrun.c.
References clear_internalvar(), and lookup_internalvar().
Referenced by core_open(), and handle_inferior_event_1().
void clear_proceed_status | ( | int | step | ) |
Definition at line 2463 of file infrun.c.
References ALL_NON_EXITED_THREADS, clear_proceed_status_thread(), clear_step_over_info(), inferior::control, current_inferior(), inferior_ptid, inferior_thread(), NO_STOP_QUIETLY, non_stop, null_ptid, observer_notify_about_to_proceed(), thread_info::ptid, ptid_equal(), ptid_match(), stop_after_trap, inferior_control_state::stop_soon, and user_visible_resume_ptid().
Referenced by attach_command(), attach_command_post_wait(), continue_1(), do_initial_windows_stuff(), finish_command(), gdbsim_create_inferior(), go32_create_inferior(), init_wait_for_inferior(), jump_command(), m32r_create_inferior(), monitor_create_inferior(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), proceed_thread_callback(), run_inferior_call(), signal_command(), step_once(), until_break_command(), and until_next_command().
Definition at line 1615 of file infrun.c.
References fprintf_unfiltered(), fputs_unfiltered(), and len.
Referenced by amd64_displaced_step_copy_insn(), displaced_step_fixup(), displaced_step_prepare(), i386_displaced_step_copy_insn(), resume(), and simple_displaced_step_copy_insn().
void fetch_inferior_event | ( | void * | ) |
Definition at line 3257 of file infrun.c.
References _, thread_info::control, inferior::control, debug_infrun, delete_just_stopped_threads_infrun_breakpoints(), delete_just_stopped_threads_infrun_breakpoints_cleanup(), deprecated_target_wait_hook, discard_cleanups(), do_cleanups(), execution_control_state::event_thread, exec_done_display_p, execution_direction, find_inferior_ptid(), finish_thread_state_cleanup(), handle_inferior_event(), INF_EXEC_COMPLETE, INF_EXEC_CONTINUE, inferior_event_handler(), inferior_ptid, interpreter_async, is_running(), target_waitstatus::kind, make_bpstat_clear_actions_cleanup(), make_cleanup(), make_cleanup_restore_current_thread(), make_cleanup_restore_current_traceframe(), make_cleanup_restore_integer(), minus_one_ptid, NO_STOP_QUIETLY, non_stop, normal_stop(), null_cleanup(), null_ptid, observer_notify_sync_execution_done(), overlay_cache_invalid, print_target_wait_results(), printf_unfiltered(), execution_control_state::ptid, ptid_equal(), reinstall_readline_callback_handler_cleanup(), set_current_traceframe(), thread_info::step_multi, inferior_control_state::stop_soon, thread_control_state::stop_step, sync_execution, target_dcache_invalidate(), target_execution_direction, target_has_execution, target_wait(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WNOHANG, execution_control_state::wait_some_more, and execution_control_state::ws.
Referenced by inferior_event_handler().
enum gdb_signal gdb_signal_from_command | ( | int | num | ) |
Definition at line 7096 of file infrun.c.
Referenced by handle_command(), queue_signal_command(), signal_command(), signals_info(), and VEC().
struct displaced_step_closure* get_displaced_step_closure_by_addr | ( | CORE_ADDR | addr | ) |
Definition at line 1508 of file infrun.c.
References get_displaced_stepping_state(), inferior_ptid, null_ptid, ptid_equal(), ptid_get_pid(), displaced_step_inferior_state::step_closure, displaced_step_inferior_state::step_copy, and displaced_step_inferior_state::step_ptid.
Referenced by arm_pc_is_thumb().
void get_last_target_status | ( | ptid_t * | ptid, |
struct target_waitstatus * | status | ||
) |
Definition at line 3408 of file infrun.c.
References target_last_wait_ptid, and target_last_waitstatus.
Referenced by checkpoint_command(), continue_command(), follow_fork(), get_pending_status(), linux_nat_kill(), mi_on_normal_stop(), normal_stop(), print_it_catch_syscall(), proc_set_current_signal(), program_info(), and signal_catchpoint_print_it().
void init_wait_for_inferior | ( | void | ) |
Definition at line 2802 of file infrun.c.
References breakpoint_init_inferior(), clear_inline_frame_state(), clear_proceed_status(), inf_starting, inferior_ptid, and minus_one_ptid.
Referenced by attach_command(), do_initial_windows_stuff(), extended_remote_create_inferior(), gdbsim_create_inferior(), m32r_create_inferior(), mips_create_inferior(), monitor_open(), remote_start_remote(), and run_command_1().
void insert_step_resume_breakpoint_at_sal | ( | struct gdbarch * | , |
struct symtab_and_line | , | ||
struct frame_id | |||
) |
Definition at line 5978 of file infrun.c.
References bp_step_resume, and insert_step_resume_breakpoint_at_sal_1().
Referenced by finish_backward(), handle_step_into_function(), insert_step_resume_breakpoint_at_caller(), and process_event_stop_test().
void normal_stop | ( | void | ) |
Definition at line 6551 of file infrun.c.
References _, annotate_stopped(), annotate_thread_changed(), async_enable_stdin(), batch_silent, breakpoint_auto_delete(), breakpoints_should_be_inserted_now(), catch_errors(), disable_current_display(), discard_cleanups(), do_cleanups(), DUMMY_FRAME, finish_thread_state_cleanup(), frame_pop(), gdb_assert, get_current_frame(), get_frame_type(), get_last_target_status(), has_stack_frames(), hook_stop_stub(), inferior_ptid, inferior_thread(), target_waitstatus::kind, make_cleanup(), minus_one_ptid, non_stop, null_cleanup(), null_ptid, observer_notify_end_stepping_range(), observer_notify_normal_stop(), observer_notify_signal_received(), print_stop_event(), printf_filtered(), prune_inferiors(), ptid_equal(), remove_breakpoints(), RETURN_MASK_ALL, select_frame(), set_current_sal_from_frame(), stop_print_frame, stop_stack_dummy, STOP_STACK_DUMMY, stopped_by_random_signal, sync_execution, target_can_async_p, target_has_execution, target_pid_to_str(), target_terminal_ours(), target_terminal_ours_for_output(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, and update_thread_list().
Referenced by attach_command_post_wait(), fetch_inferior_event(), infrun_thread_stop_requested_callback(), proceed(), resume_cleanups(), run_inferior_call(), start_remote(), and step_once().
void prepare_for_detach | ( | void | ) |
Definition at line 3087 of file infrun.c.
References _, current_inferior(), debug_infrun, deprecated_target_wait_hook, inferior::detaching, discard_cleanups(), error(), finish_thread_state_cleanup(), fprintf_unfiltered(), gdb_stdlog, get_displaced_stepping_state(), handle_inferior_event(), make_cleanup(), make_cleanup_restore_integer(), minus_one_ptid, null_ptid, overlay_cache_invalid, inferior::pid, pid_to_ptid(), print_target_wait_results(), execution_control_state::ptid, ptid_equal(), displaced_step_inferior_state::step_ptid, target_dcache_invalidate(), target_wait(), execution_control_state::wait_some_more, and execution_control_state::ws.
Referenced by target_detach().
void print_end_stepping_range_reason | ( | struct ui_out * | uiout | ) |
Definition at line 6375 of file infrun.c.
References async_reason_lookup(), EXEC_ASYNC_END_STEPPING_RANGE, ui_out_field_string(), and ui_out_is_mi_like_p().
Referenced by cli_on_end_stepping_range(), mi_on_end_stepping_range(), and tui_on_end_stepping_range().
Definition at line 6408 of file infrun.c.
References annotate_exited(), async_reason_lookup(), current_inferior(), EXEC_ASYNC_EXITED, EXEC_ASYNC_EXITED_NORMALLY, inferior::num, inferior::pid, pid_to_ptid(), plongest(), target_pid_to_str(), ui_out_field_fmt(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by cli_on_exited(), mi_on_exited(), and tui_on_exited().
void print_no_history_reason | ( | struct ui_out * | uiout | ) |
Definition at line 6475 of file infrun.c.
References ui_out_text().
Referenced by cli_on_no_history(), mi_on_no_history(), and tui_on_no_history().
void print_signal_exited_reason | ( | struct ui_out * | uiout, |
enum gdb_signal | siggnal | ||
) |
Definition at line 6387 of file infrun.c.
References annotate_signal_name(), annotate_signal_name_end(), annotate_signal_string(), annotate_signal_string_end(), annotate_signalled(), async_reason_lookup(), EXEC_ASYNC_EXITED_SIGNALLED, gdb_signal_to_name(), gdb_signal_to_string(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by cli_on_signal_exited(), mi_on_signal_exited(), and tui_on_signal_exited().
void print_signal_received_reason | ( | struct ui_out * | uiout, |
enum gdb_signal | siggnal | ||
) |
Definition at line 6441 of file infrun.c.
References annotate_signal(), annotate_signal_name(), annotate_signal_name_end(), annotate_signal_string(), annotate_signal_string_end(), async_reason_lookup(), EXEC_ASYNC_SIGNAL_RECEIVED, gdb_signal_to_name(), gdb_signal_to_string(), inferior_thread(), thread_info::num, thread_info::ptid, target_pid_to_str(), ui_out_field_fmt(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by cli_on_signal_received(), mi_on_signal_received(), and tui_on_signal_received().
void print_stop_event | ( | struct target_waitstatus * | ws | ) |
Definition at line 6486 of file infrun.c.
References _, bpstat_print(), thread_info::control, do_displays(), find_pc_function(), frame_id_eq(), get_current_frame(), get_frame_id(), get_selected_frame(), inferior_thread(), internal_error(), target_waitstatus::kind, PRINT_NOTHING, PRINT_SRC_AND_LOC, PRINT_SRC_ONLY, print_stack_frame(), PRINT_UNKNOWN, SRC_AND_LOC, SRC_LINE, thread_control_state::step_frame_id, thread_control_state::step_start_function, thread_control_state::stop_bpstat, stop_pc, and thread_control_state::stop_step.
Referenced by mi_on_normal_stop(), and normal_stop().
void proceed | ( | CORE_ADDR | , |
enum | gdb_signal | ||
) |
Definition at line 2592 of file infrun.c.
References annotate_starting(), breakpoint_here_p(), clear_step_over_info(), thread_control_state::command_interp, command_interp(), thread_info::control, debug_infrun, EXEC_REVERSE, execution_direction, find_thread_needs_step_over(), follow_fork(), fprintf_unfiltered(), gdb_flush(), gdb_signal_to_symbol_string(), gdb_stdlog, gdb_stdout, gdbarch_single_step_through_delay(), gdbarch_single_step_through_delay_p(), get_current_frame(), get_current_regcache(), get_regcache_arch(), get_regcache_aspace(), INF_EXEC_COMPLETE, inferior_event_handler(), inferior_ptid, inferior_thread(), init_thread_stepping_state(), insert_breakpoints(), non_stop, normal_stop(), ordinary_breakpoint_here, paddress(), thread_info::prev_pc, thread_info::ptid, regcache_read_pc(), regcache_write_pc(), resume(), set_step_over_info(), thread_info::stepping_over_breakpoint, stop_pc, thread_suspend_state::stop_signal, thread_info::suspend, switch_to_thread(), target_can_async_p, target_pid_to_str(), thread_control_state::trap_expected, use_displaced_stepping(), and wait_for_inferior().
Referenced by attach_command_post_wait(), continue_1(), finish_backward(), finish_command(), finish_forward(), jump_command(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), proceed_thread_callback(), run_command_1(), run_inferior_call(), signal_command(), step_once(), until_break_command(), and until_next_command().
void resume | ( | enum | gdb_signal | ) |
Definition at line 2104 of file infrun.c.
References bpstat_should_step(), breakpoint_here_p(), breakpoint_inserted_here_p(), clear_step_over_info(), thread_info::control, current_inferior(), currently_stepping(), debug_displaced, debug_infrun, delete_single_step_breakpoints(), discard_cleanups(), displaced_step_dump_bytes(), displaced_step_prepare(), do_target_resume(), EXEC_REVERSE, execution_direction, fprintf_unfiltered(), gdb_assert, gdb_signal_to_symbol_string(), gdb_stdlog, gdbarch_cannot_step_breakpoint(), gdbarch_displaced_step_hw_singlestep(), gdbarch_skip_permanent_breakpoint(), get_current_frame(), get_current_regcache(), get_displaced_stepping_state(), get_regcache_arch(), get_regcache_aspace(), get_thread_regcache(), inferior_ptid, inferior_thread(), insert_breakpoints(), insert_hp_step_resume_breakpoint_at_frame(), insert_single_step_breakpoint(), breakpoint::loc, make_cleanup(), thread_control_state::may_range_step, maybe_software_singlestep(), paddress(), pc_in_thread_step_range(), bp_location::permanent, permanent_breakpoint_here, thread_info::ptid, ptid_get_pid(), QUIT, read_memory(), regcache_read_pc(), resume_cleanups(), set_running(), thread_info::step_after_step_resume_breakpoint, displaced_step_inferior_state::step_closure, step_over_info_valid_p(), thread_control_state::step_resume_breakpoint, thread_info::stepped_breakpoint, thread_control_state::stepping_command, target_pid_to_str(), thread_has_single_step_breakpoints_set(), thread_control_state::trap_expected, use_displaced_stepping(), and user_visible_resume_ptid().
Referenced by do_initial_windows_stuff(), handle_inferior_event_1(), keep_going(), and proceed().
void set_step_info | ( | struct frame_info * | frame, |
struct symtab_and_line | sal | ||
) |
Definition at line 3371 of file infrun.c.
References thread_info::control, thread_info::current_line, thread_info::current_symtab, get_frame_id(), get_stack_frame_id(), inferior_thread(), symtab_and_line::line, thread_control_state::step_frame_id, thread_control_state::step_stack_frame_id, and symtab_and_line::symtab.
Referenced by finish_command(), process_event_stop_test(), and set_step_frame().
Definition at line 6848 of file infrun.c.
References signal_cache_update(), signal_catch, signal_pass, and target_pass_signals().
Referenced by signal_catchpoint_insert_location(), and signal_catchpoint_remove_location().
Definition at line 6792 of file infrun.c.
References signal_program.
Referenced by clear_proceed_status_thread(), get_pending_status(), linux_child_follow_fork(), linux_nat_filter_event(), queue_signal_command(), remote_program_signals(), and signal_command().
Definition at line 6835 of file infrun.c.
References signal_cache_update(), and signal_program.
Referenced by nto_initialize_signals().
Definition at line 6786 of file infrun.c.
References signal_print.
Definition at line 6825 of file infrun.c.
References signal_cache_update(), and signal_print.
Referenced by check_thread_signals(), and nto_initialize_signals().
Definition at line 6780 of file infrun.c.
References signal_stop.
Referenced by handle_signal_stop().
Definition at line 6815 of file infrun.c.
References signal_cache_update(), and signal_stop.
Referenced by check_thread_signals(), and nto_initialize_signals().
void start_remote | ( | int | from_tty | ) |
Definition at line 2768 of file infrun.c.
References inferior::control, current_inferior(), current_target, normal_stop(), post_create_inferior(), STOP_QUIETLY_REMOTE, inferior_control_state::stop_soon, and wait_for_inferior().
Referenced by monitor_open(), and remote_start_remote().
int stepping_past_instruction_at | ( | struct address_space * | aspace, |
CORE_ADDR | address | ||
) |
Definition at line 1292 of file infrun.c.
References step_over_info::address, step_over_info::aspace, and breakpoint_address_match().
Referenced by should_be_inserted().
int stepping_past_nonsteppable_watchpoint | ( | void | ) |
Definition at line 1304 of file infrun.c.
References step_over_info::nonsteppable_watchpoint_p.
Referenced by should_be_inserted(), and step_over_info_valid_p().
void update_observer_mode | ( | void | ) |
Definition at line 262 of file infrun.c.
References _, may_insert_breakpoints, may_insert_fast_tracepoints, may_insert_tracepoints, may_stop, non_stop, observer_mode, observer_mode_1, and printf_filtered().
Referenced by set_target_permissions(), and set_write_memory_permission().
void update_signals_program_target | ( | void | ) |
Definition at line 317 of file infrun.c.
References signal_program, and target_program_signals().
Referenced by remote_start_remote().
Definition at line 2021 of file infrun.c.
References inferior_ptid, non_stop, pid_to_ptid(), ptid_get_pid(), RESUME_ALL, sched_multi, schedlock_on, schedlock_step, scheduler_mode, and target_supports_multi_process.
Referenced by clear_proceed_status(), resume(), run_inferior_call(), signal_command(), step_once(), and switch_back_to_stepped_thread().
void wait_for_inferior | ( | void | ) |
Definition at line 3165 of file infrun.c.
References debug_infrun, delete_just_stopped_threads_infrun_breakpoints_cleanup(), deprecated_target_wait_hook, discard_cleanups(), do_cleanups(), finish_thread_state_cleanup(), fprintf_unfiltered(), gdb_stdlog, handle_inferior_event(), make_cleanup(), minus_one_ptid, overlay_cache_invalid, print_target_wait_results(), execution_control_state::ptid, target_dcache_invalidate(), target_wait(), execution_control_state::wait_some_more, and execution_control_state::ws.
Referenced by attach_command(), do_initial_windows_stuff(), notice_new_inferior(), proceed(), run_inferior_call(), and start_remote().
int debug_displaced |
Definition at line 132 of file infrun.c.
Referenced by _initialize_infrun(), amd64_displaced_step_copy_insn(), amd64_displaced_step_fixup(), amd64_relocate_instruction(), arm_copy_alu_imm(), arm_copy_alu_reg(), arm_copy_alu_shifted_reg(), arm_copy_b_bl_blx(), arm_copy_block_xfer(), arm_copy_bx_blx_reg(), arm_copy_copro_load_store(), arm_copy_extra_ld_st(), arm_copy_ldr_str_ldrb_strb(), arm_copy_preload(), arm_copy_preload_reg(), arm_copy_svc(), arm_copy_undef(), arm_copy_unmodified(), arm_copy_unpred(), arm_displaced_init_closure(), arm_linux_cleanup_svc(), arm_linux_copy_svc(), arm_linux_displaced_step_copy_insn(), arm_pc_is_thumb(), arm_process_displaced_insn(), cleanup_block_load_all(), cleanup_block_load_pc(), cleanup_block_store_pc(), cleanup_svc(), displaced_read_reg(), displaced_step_fixup(), displaced_step_prepare(), displaced_step_restore(), displaced_write_reg(), fixup_riprel(), handle_inferior_event_1(), i386_displaced_step_copy_insn(), i386_displaced_step_fixup(), i386_relocate_instruction(), ppc_displaced_step_fixup(), resume(), s390_displaced_step_fixup(), simple_displaced_step_copy_insn(), thumb2_copy_alu_imm(), thumb2_copy_b_bl_blx(), thumb2_copy_block_xfer(), thumb2_copy_copro_load_store(), thumb2_copy_load_literal(), thumb2_copy_load_reg_imm(), thumb2_copy_preload(), thumb2_copy_table_branch(), thumb_32bit_copy_undef(), thumb_copy_16bit_ldr_literal(), thumb_copy_alu_reg(), thumb_copy_b(), thumb_copy_bx_blx_reg(), thumb_copy_cbnz_cbz(), thumb_copy_pc_relative_32bit(), thumb_copy_pop_pc_16bit(), thumb_copy_svc(), thumb_copy_unmodified_16bit(), thumb_copy_unmodified_32bit(), thumb_decode_pc_relative_16bit(), and thumb_process_displaced_insn().
unsigned int debug_infrun |
Definition at line 140 of file infrun.c.
Referenced by _initialize_infrun(), bpstat_what(), clear_proceed_status_thread(), context_switch(), fetch_inferior_event(), follow_fork_inferior(), handle_inferior_event_1(), handle_signal_stop(), handle_syscall_event(), handle_vfork_child_exec_or_exit(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), insert_longjmp_resume_breakpoint(), insert_step_resume_breakpoint_at_sal_1(), prepare_for_detach(), prepare_to_wait(), proceed(), proceed_after_vfork_done(), process_event_stop_test(), resume(), should_be_inserted(), stop_waiting(), switch_back_to_stepped_thread(), and wait_for_inferior().
int disable_randomization |
Definition at line 151 of file infrun.c.
Referenced by _initialize_infrun(), extended_remote_create_inferior(), and linux_nat_create_inferior().
int execution_direction |
Definition at line 7561 of file infrun.c.
Referenced by adjust_pc_after_break(), call_function_by_hand_dummy(), exec_direction_default(), exec_direction_forward(), exec_reverse_continue(), exec_reverse_once(), fetch_inferior_event(), finish_command(), maybe_software_singlestep(), ppc64_skip_trampoline_code(), ppc_skip_trampoline_code(), proceed(), process_event_stop_test(), record_btrace_resume(), record_btrace_wait(), record_full_core_resume(), record_full_resume(), record_full_wait_1(), record_full_wait_cleanups(), remote_resume(), and resume().
int non_stop |
Definition at line 180 of file infrun.c.
Referenced by adjust_pc_after_break(), attach_command(), attach_command_post_wait(), clear_proceed_status(), continue_1(), continue_command(), exec_continue(), extended_remote_attach(), fetch_inferior_event(), find_thread_needs_step_over(), follow_fork(), follow_fork_inferior(), for_each_just_stopped_thread(), get_event_thread(), get_pending_status(), handle_inferior_event_1(), handle_notification(), handle_vfork_child_exec_or_exit(), inferior_event_handler(), interrupt_command(), interrupt_target_1(), linux_nat_filter_event(), linux_nat_stop(), linux_nat_wait(), linux_nat_wait_1(), mi_cmd_exec_interrupt(), mi_on_normal_stop(), normal_stop(), notice_new_inferior(), prepare_execute_command(), proceed(), program_info(), putpkt_binary(), record_btrace_open(), record_btrace_wait(), record_full_open_1(), remote_async_get_pending_events_handler(), remote_notice_new_inferior(), remote_parse_stop_reply(), remote_resume(), remote_start_remote(), remote_stop(), remote_update_thread_list(), remote_vcont_resume(), remote_wait(), run_command_1(), select_event_lwp(), set_non_stop(), set_observer_mode(), show_can_use_displaced_stepping(), signal_command(), switch_back_to_stepped_thread(), target_stop_and_wait(), update_global_location_list(), update_observer_mode(), use_displaced_stepping(), and user_visible_resume_ptid().
int sched_multi |
Definition at line 1996 of file infrun.c.
Referenced by _initialize_infrun(), exec_continue(), find_thread_needs_step_over(), follow_fork_inferior(), switch_back_to_stepped_thread(), and user_visible_resume_ptid().
int step_stop_if_no_debug |
Definition at line 107 of file infrun.c.
Referenced by _initialize_infrun(), process_event_stop_test(), and step_once().
int stop_on_solib_events |
Definition at line 332 of file infrun.c.
Referenced by _initialize_infrun(), handle_inferior_event_1(), internal_bkpt_check_status(), and svr4_update_solib_event_breakpoint().
int sync_execution |
Definition at line 117 of file infrun.c.
Referenced by async_background_execution_p(), async_disable_stdin(), async_enable_stdin(), catch_command_errors(), catch_command_errors_const(), continue_1(), display_gdb_prompt(), execute_command(), fetch_inferior_event(), follow_fork_inferior(), handle_inferior_event_1(), maybe_wait_sync_command_done(), mi_execute_command_input_handler(), mi_interpreter_resume(), mi_on_resume(), normal_stop(), reinstall_readline_callback_handler_cleanup(), run_inferior_call(), and target_terminal_inferior().