GDB (xrefs)

Classes | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/infrun.h File Reference
`#include "symtab.h"`
`#include "common/byte-vector.h"`

Go to the source code of this file.

## Classes
struct | displaced_step_closure
struct | buf_displaced_step_closure

## Enumerations
enum | exec_direction_kind { EXEC_FORWARD, EXEC_REVERSE }

## Functions
ULONGEST | get_stop_id (void)
void | start_remote (int from_tty)
void | clear_proceed_status (int step)
void | proceed (CORE_ADDR, enum gdb_signal)
void | resume (enum gdb_signal)
ptid_t | user_visible_resume_ptid (int step)
void | wait_for_inferior (void)
int | normal_stop (void)
void | get_last_target_status (ptid_t *ptid, struct target_waitstatus *status)
void | set_last_target_status (ptid_t ptid, struct target_waitstatus status)
void | stop_all_threads (void)
void | prepare_for_detach (void)
void | fetch_inferior_event (void *)
void | init_wait_for_inferior (void)
void | insert_step_resume_breakpoint_at_sal (struct gdbarch *, struct symtab_and_line, struct frame_id)
int | stepping_past_instruction_at (struct address_space *aspace, CORE_ADDR address)
int | thread_is_stepping_over_breakpoint (int thread)
int | stepping_past_nonsteppable_watchpoint (void)
void | set_step_info (struct frame_info *frame, struct symtab_and_line sal)
void | print_signal_received_reason (struct ui_out *uiout, enum gdb_signal siggnal)
void | print_end_stepping_range_reason (struct ui_out *uiout)
void | print_signal_exited_reason (struct ui_out *uiout, enum gdb_signal siggnal)
void | print_exited_reason (struct ui_out *uiout, int exitstatus)
void | print_no_history_reason (struct ui_out *uiout)
void | print_return_value (struct ui_out *uiout, struct return_value_info *rv)
void | print_stop_event (struct ui_out *uiout)
void | print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid, const struct target_waitstatus *ws)
int | signal_stop_state (int)
int | signal_print_state (int)
int | signal_pass_state (int)
int | signal_stop_update (int, int)
int | signal_print_update (int, int)
int | signal_pass_update (int, int)
void | update_signals_program_target (void)
void | clear_exit_convenience_vars (void)
void | displaced_step_dump_bytes (struct ui_file *file, const gdb_byte *buf, size_t len)
struct displaced_step_closure * | get_displaced_step_closure_by_addr (CORE_ADDR addr)
void | update_observer_mode (void)
void | signal_catch_update (const unsigned int *)
enum gdb_signal | gdb_signal_from_command (int num)
void | infrun_async (int enable)
void | mark_infrun_async_event_handler (void)
void | maybe_remove_breakpoints (void)
void | all_uis_check_sync_execution_done (void)
void | all_uis_on_sync_execution_starting (void)

## Variables
unsigned int | debug_infrun
int | debug_displaced
int | stop_on_solib_events
int | sched_multi
int | step_stop_if_no_debug
int | non_stop
int | disable_randomization
enum exec_direction_kind | execution_direction
struct thread_info * | step_over_queue_head

## Enumeration Type Documentation

## ◆ exec_direction_kind

enum exec_direction_kind

Enumerator
EXEC_FORWARD |
EXEC_REVERSE |

Definition at line 67 of file infrun.h.

## Function Documentation

## ◆ all_uis_check_sync_execution_done()

void all_uis_check_sync_execution_done | ( | void |  | ) |

Definition at line 3831 of file infrun.c.

References check_curr_ui_sync_execution_done(), and SWITCH_THRU_ALL_UIS.

Referenced by fetch_inferior_event(), and step_1().

## ◆ all_uis_on_sync_execution_starting()

void all_uis_on_sync_execution_starting | ( | void |  | ) |

Definition at line 3842 of file infrun.c.

References async_disable_stdin(), current_ui, PROMPT_NEEDED, ui::prompt_state, and SWITCH_THRU_ALL_UIS.

Referenced by prepare_execution_command().

## ◆ clear_exit_convenience_vars()

void clear_exit_convenience_vars | ( | void |  | ) |

Definition at line 9077 of file infrun.c.

References clear_internalvar(), and lookup_internalvar().

Referenced by core_open(), and handle_inferior_event_1().

## ◆ clear_proceed_status()

void clear_proceed_status | ( | int | step | ) |

Definition at line 2860 of file infrun.c.

References ALL_NON_EXITED_THREADS, clear_proceed_status_thread(), inferior::control, current_inferior(), execution_direction, inferior::inferior(), inferior_ptid, inferior_thread(), minus_one_ptid, NO_STOP_QUIETLY, non_stop, null_ptid, observer_notify_about_to_proceed(), thread_info::ptid, ptid_equal(), ptid_match(), schedlock_replay, scheduler_mode, inferior_control_state::stop_soon, target_record_is_replaying(), target_record_stop_replaying(), target_record_will_replay(), and user_visible_resume_ptid().

Referenced by attach_command(), attach_post_wait(), continue_1(), do_initial_windows_stuff(), finish_command(), gdbsim_create_inferior(), go32_create_inferior(), init_wait_for_inferior(), jump_command(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), proceed_thread_callback(), run_inferior_call(), signal_command(), step_1(), until_break_command(), and until_next_command().

## ◆ displaced_step_dump_bytes()

void displaced_step_dump_bytes | ( | struct ui_file * | file,
|  | const gdb_byte * | buf,
|  | size_t | len
| ) |  |

Definition at line 1721 of file infrun.c.

References fprintf_unfiltered(), and fputs_unfiltered().

Referenced by amd64_displaced_step_copy_insn(), BP_MANIPULATION_ENDIAN(), displaced_step_prepare_throw(), i386_displaced_step_copy_insn(), resume_1(), and s390_displaced_step_copy_insn().

## ◆ fetch_inferior_event()

void fetch_inferior_event | ( | void * |  | ) |

Definition at line 3861 of file infrun.c.

References _, all_uis_check_sync_execution_done(), clean_up_just_stopped_threads_fsms(), current_ui, debug_infrun, delete_just_stopped_threads_infrun_breakpoints(), delete_just_stopped_threads_infrun_breakpoints_cleanup(), discard_cleanups(), do_cleanups(), do_target_wait(), gdb::optional< T >::emplace(), execution_control_state::event_thread, exec_done_display_p, execution_direction, find_inferior_ptid(), finish_thread_state_cleanup(), handle_inferior_event(), INF_EXEC_COMPLETE, inferior_event_handler(), inferior_ptid, is_running(), keep_going(), main_ui, make_bpstat_clear_actions_cleanup(), make_cleanup(), make_cleanup_restore_current_traceframe(), make_scoped_restore(), memset(), minus_one_ptid, NO_STOP_QUIETLY, non_stop, normal_stop(), null_cleanup(), null_ptid, overlay_cache_invalid, print_target_wait_results(), printf_unfiltered(), execution_control_state::ptid, ptid_equal(), reinstall_readline_callback_handler_cleanup(), set_current_traceframe(), target_can_async_p, target_dcache_invalidate(), target_execution_direction, target_is_non_stop_p(), TARGET_WNOHANG, thread_info::thread_fsm, thread_fsm_should_notify_stop(), thread_fsm_should_stop(), execution_control_state::wait_some_more, and execution_control_state::ws.

Referenced by inferior_event_handler().

## ◆ gdb_signal_from_command()

enum gdb_signal gdb_signal_from_command | ( | int | num | ) |

Definition at line 8666 of file infrun.c.

References _, and error().

Referenced by catch_signal_split_args(), handle_command(), info_signals_command(), queue_signal_command(), and signal_command().

## ◆ get_displaced_step_closure_by_addr()

struct displaced_step_closure* get_displaced_step_closure_by_addr | ( | CORE_ADDR | addr | ) |

Definition at line 1608 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().

## ◆ get_last_target_status()

void get_last_target_status | ( | ptid_t * | ptid,
|  | struct target_waitstatus * | status
| ) |  |

Definition at line 4037 of file infrun.c.

References status, target_last_wait_ptid, and target_last_waitstatus.

Referenced by checkpoint_command(), continue_command(), follow_fork(), get_detach_signal(), info_program_command(), normal_stop(), print_it_catch_syscall(), print_stop_event(), proc_set_current_signal(), and signal_catchpoint_print_it().

## ◆ get_stop_id()

ULONGEST get_stop_id | ( | void |  | ) |

Definition at line 2777 of file infrun.c.

References current_stop_id.

Referenced by save_stop_context(), and stop_context_changed().

## ◆ infrun_async()

void infrun_async | ( | int | enable | ) |

Definition at line 106 of file infrun.c.

References clear_async_event_handler(), debug_infrun, enable, fprintf_unfiltered(), gdb_stdlog, infrun_async_inferior_event_token, infrun_is_async, and mark_async_event_handler().

Referenced by target_async().

## ◆ init_wait_for_inferior()

void init_wait_for_inferior | ( | void |  | ) |

Definition at line 3252 of file infrun.c.

References breakpoint_init_inferior(), clear_inline_frame_state(), clear_proceed_status(), inf_starting, inferior_ptid, minus_one_ptid, previous_inferior_ptid, and target_last_wait_ptid.

Referenced by attach_command(), do_initial_windows_stuff(), extended_remote_create_inferior(), gdbsim_create_inferior(), remote_start_remote(), and run_command_1().

## ◆ insert_step_resume_breakpoint_at_sal()

void insert_step_resume_breakpoint_at_sal | ( | struct gdbarch * | ,
|  | struct symtab_and_line | ,
|  | struct frame_id |
| ) |  |

Definition at line 7412 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().

## ◆ mark_infrun_async_event_handler()

void mark_infrun_async_event_handler | ( | void |  | ) |

Definition at line 127 of file infrun.c.

References infrun_async_inferior_event_token, and mark_async_event_handler().

Referenced by attach_command(), and prepare_to_wait().

## ◆ maybe_remove_breakpoints()

void maybe_remove_breakpoints | ( | void |  | ) |

Definition at line 8076 of file infrun.c.

References _, breakpoints_should_be_inserted_now(), target_terminal::ours_for_output(), printf_filtered(), remove_breakpoints(), and target_has_execution.

Referenced by call_function_by_hand_dummy(), and normal_stop().

## ◆ normal_stop()

int normal_stop | ( | void |  | ) |

Definition at line 8167 of file infrun.c.

References _, annotate_stopped(), annotate_thread_changed(), async_enable_stdin(), breakpoint_auto_delete(), CATCH, current_ui, disable_current_display(), do_cleanups(), DUMMY_FRAME, END_CATCH, exception_fprintf(), execute_cmd_pre_hook(), finish_thread_state_cleanup(), frame_pop(), gdb_assert, gdb_stderr, get_current_frame(), get_frame_type(), get_last_target_status(), has_stack_frames(), inferior_ptid, inferior_thread(), target_waitstatus::kind, make_cleanup(), maybe_remove_breakpoints(), minus_one_ptid, new_stop_id(), non_stop, null_cleanup(), null_ptid, observer_notify_normal_stop(), observer_notify_signal_received(), target_terminal::ours_for_output(), pid_to_ptid(), previous_inferior_ptid, printf_filtered(), PROMPT_BLOCKED, ui::prompt_state, prune_inferiors(), ptid_equal(), ptid_get_pid(), release_stop_context_cleanup(), RETURN_MASK_ALL, save_stop_context(), saved_context, select_frame(), set_current_sal_from_frame(), stop_command, stop_context_changed(), stop_print_frame, stop_stack_dummy, STOP_STACK_DUMMY, stopped_by_random_signal, SWITCH_THRU_ALL_UIS, target_has_execution, target_pid_to_str(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TRY, and update_thread_list().

Referenced by attach_post_wait(), fetch_inferior_event(), proceed(), start_remote(), and step_1().

## ◆ prepare_for_detach()

void prepare_for_detach | ( | void |  | ) |

Definition at line 3627 of file infrun.c.

References _, current_inferior(), debug_infrun, discard_cleanups(), do_target_wait(), error(), finish_thread_state_cleanup(), fprintf_unfiltered(), gdb_stdlog, get_displaced_stepping_state(), handle_inferior_event(), make_cleanup(), make_scoped_restore(), memset(), minus_one_ptid, null_ptid, overlay_cache_invalid, inf::pid, pid_to_ptid(), print_target_wait_results(), execution_control_state::ptid, ptid_equal(), scoped_restore_base::release(), displaced_step_inferior_state::step_ptid, target_dcache_invalidate(), execution_control_state::wait_some_more, and execution_control_state::ws.

Referenced by target_detach().

## ◆ print_end_stepping_range_reason()

void print_end_stepping_range_reason | ( | struct ui_out * | uiout | ) |

Definition at line 7848 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().

## ◆ print_exited_reason()

void print_exited_reason | ( | struct ui_out * | uiout,
|  | int | exitstatus
| ) |  |

Definition at line 7881 of file infrun.c.

References annotate_exited(), async_reason_lookup(), current_inferior(), EXEC_ASYNC_EXITED, EXEC_ASYNC_EXITED_NORMALLY, ui_out::field_fmt(), ui_out::field_string(), ui_out::is_mi_like_p(), inf::pid, pid_to_ptid(), plongest(), target_pid_to_str(), and ui_out::text().

Referenced by cli_on_exited(), mi_on_exited(), and tui_on_exited().

## ◆ print_no_history_reason()

void print_no_history_reason | ( | struct ui_out * | uiout | ) |

Definition at line 7977 of file infrun.c.

References ui_out::text().

Referenced by cli_on_no_history(), mi_on_no_history(), and tui_on_no_history().

## ◆ print_return_value()

void print_return_value | ( | struct ui_out * | uiout,
|  | struct return_value_info * | rv
| ) |  |

Definition at line 1715 of file infcmd.c.

References CATCH, END_CATCH, exception_print(), gdb_stdout, print_return_value_1(), RETURN_MASK_ALL, TRY, return_value_info::type, TYPE_CODE, and TYPE_CODE_VOID.

Referenced by print_stop_event().

## ◆ print_signal_exited_reason()

void print_signal_exited_reason | ( | struct ui_out * | uiout,
|  | enum gdb_signal | siggnal
| ) |  |

Definition at line 7860 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, ui_out::field_string(), gdb_signal_to_name(), gdb_signal_to_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().

## ◆ print_signal_received_reason()

void print_signal_received_reason | ( | struct ui_out * | uiout,
|  | enum gdb_signal | siggnal
| ) |  |

Definition at line 7927 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, ui_out::field_fmt(), ui_out::field_string(), gdb_signal_to_name(), gdb_signal_to_string(), handle_segmentation_fault(), inferior_thread(), ui_out::is_mi_like_p(), name, thread_info::name, print_thread_id(), show_thread_that_caused_stop(), target_thread_name(), and ui_out::text().

Referenced by cli_on_signal_received(), mi_on_signal_received(), and tui_on_signal_received().

## ◆ print_stop_event()

void print_stop_event | ( | struct ui_out * | uiout | ) |

Definition at line 8044 of file infrun.c.

References current_uiout, do_displays(), get_last_target_status(), inferior_thread(), make_scoped_restore(), print_return_value(), print_stop_location(), thread_info::thread_fsm, thread_fsm_finished_p(), and thread_fsm_return_value().

Referenced by cli_on_normal_stop(), mi_on_normal_stop_1(), and tui_on_normal_stop().

## ◆ print_target_wait_results()

void print_target_wait_results | ( | ptid_t | waiton_ptid,
|  | ptid_t | result_ptid,
|  | const struct target_waitstatus * | ws
| ) |  |

Definition at line 3419 of file infrun.c.

References string_file::c_str(), fprintf_unfiltered(), gdb_stdlog, ui_file::printf(), ptid_get_lwp(), ptid_get_pid(), ptid_get_tid(), string, target_pid_to_str(), and target_waitstatus_to_string().

Referenced by fetch_inferior_event(), prepare_for_detach(), process_initial_stop_replies(), wait_for_inferior(), and wait_one().

## ◆ proceed()

void proceed | ( | CORE_ADDR | ,
|  | enum | gdb_signal
| ) |  |

Definition at line 2977 of file infrun.c.

References _, ALL_NON_EXITED_THREADS, annotate_starting(), regcache::arch(), regcache::aspace(), breakpoint_here_p(), thread_info::control, debug_infrun, discard_cleanups(), error(), EXEC_REVERSE, thread_info::executing, execution_direction, finish_thread_state_cleanup(), follow_fork(), fprintf_unfiltered(), gdb_assert, 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(), thread_control_state::in_infcall, INF_EXEC_COMPLETE, target_terminal::inferior(), inferior_event_handler(), inferior_ptid, inferior_thread(), infrun_async_inferior_event_token, init_thread_stepping_state(), keep_going_pass_signal(), make_cleanup(), make_scoped_defer_target_commit_resume(), mark_async_event_handler(), non_stop, normal_stop(), ordinary_breakpoint_here, paddress(), thread_info::prev_pc, previous_inferior_ptid, thread_info::ptid, ptid_match(), regcache::regcache(), regcache_read_pc(), regcache_write_pc(), reset_ecs(), thread_info::resumed, schedlock_applies(), set_running(), start_step_over(), step_over_info_valid_p(), thread_control_state::stepping_command, thread_info::stepping_over_breakpoint, stop_pc, thread_suspend_state::stop_signal, thread_info::suspend, switch_to_thread(), target_can_async_p, target_commit_resume(), target_is_non_stop_p(), target_pid_to_str(), thread_is_in_step_over_chain(), thread_step_over_chain_enqueue(), thread_still_needs_step_over(), user_visible_resume_ptid(), execution_control_state::wait_some_more, and thread_suspend_state::waitstatus_pending_p.

Referenced by attach_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_1(), until_break_command(), and until_next_command().

## ◆ resume()

void resume | ( | enum | gdb_signal | ) |

## ◆ set_last_target_status()

void set_last_target_status | ( | ptid_t | ptid,
|  | struct target_waitstatus | status
| ) |  |

Definition at line 4025 of file infrun.c.

References thread_info::ptid, status, target_last_wait_ptid, and target_last_waitstatus.

Referenced by handle_inferior_event_1(), and process_initial_stop_replies().

## ◆ set_step_info()

void set_step_info | ( | struct frame_info * | frame,
|  | struct symtab_and_line | sal
| ) |  |

Definition at line 4000 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().

## ◆ signal_catch_update()

void signal_catch_update | ( | const unsigned int * |  | ) |

Definition at line 8430 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().

## ◆ signal_pass_state()

int signal_pass_state | ( | int |  | ) |

Definition at line 8374 of file infrun.c.

References signal_program.

Referenced by clear_proceed_status_thread(), get_detach_signal(), linux_child_follow_fork(), linux_nat_filter_event(), queue_signal_command(), remote_program_signals(), and signal_command().

## ◆ signal_pass_update()

int signal_pass_update | ( | int | ,
|  | int |
| ) |  |

Definition at line 8417 of file infrun.c.

References signal_cache_update(), and signal_program.

Referenced by nto_initialize_signals().

## ◆ signal_print_state()

int signal_print_state | ( | int |  | ) |

Definition at line 8368 of file infrun.c.

References signal_print.

Referenced by print_one_stopped_thread().

## ◆ signal_print_update()

int signal_print_update | ( | int | ,
|  | int |
| ) |  |

Definition at line 8407 of file infrun.c.

References signal_cache_update(), and signal_print.

Referenced by check_thread_signals(), and nto_initialize_signals().

## ◆ signal_stop_state()

int signal_stop_state | ( | int |  | ) |

Definition at line 8362 of file infrun.c.

References signal_stop.

Referenced by handle_signal_stop().

## ◆ signal_stop_update()

int signal_stop_update | ( | int | ,
|  | int |
| ) |  |

Definition at line 8397 of file infrun.c.

References signal_cache_update(), and signal_stop.

Referenced by check_thread_signals(), and nto_initialize_signals().

## ◆ start_remote()

void start_remote | ( | int | from_tty | ) |

Definition at line 3218 of file infrun.c.

References inferior::control, current_inferior(), current_target, inferior::inferior(), normal_stop(), post_create_inferior(), STOP_QUIETLY_REMOTE, inferior_control_state::stop_soon, and wait_for_inferior().

Referenced by remote_start_remote().

## ◆ stepping_past_instruction_at()

int stepping_past_instruction_at | ( | struct address_space * | aspace,
|  | CORE_ADDR | address
| ) |  |

Definition at line 1355 of file infrun.c.

References step_over_info::address, step_over_info::aspace, and breakpoint_address_match().

Referenced by should_be_inserted().

## ◆ stepping_past_nonsteppable_watchpoint()

int stepping_past_nonsteppable_watchpoint | ( | void |  | ) |

Definition at line 1376 of file infrun.c.

References step_over_info::nonsteppable_watchpoint_p.

Referenced by should_be_inserted(), and step_over_info_valid_p().

## ◆ stop_all_threads()

void stop_all_threads | ( | void |  | ) |

Definition at line 4468 of file infrun.c.

References add_thread(), ALL_NON_EXITED_THREADS, thread_info::control, currently_stepping(), debug_infrun, disable_thread_events(), displaced_step_fixup(), do_cleanups(), thread_info::executing, find_inferior_ptid(), find_thread_ptid(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, get_thread_regcache(), arm-linux::inf, inferior_ptid, target_waitstatus::integer, target_waitstatus::kind, make_cleanup(), thread_control_state::may_range_step, paddress(), pid_to_ptid(), thread_info::ptid, ptid_get_lwp(), ptid_get_pid(), ptid_get_tid(), regcache::regcache(), regcache_read_pc(), thread_info::resumed, save_waitstatus(), setup_inferior(), target_waitstatus::sig, thread_suspend_state::stop_pc, thread_info::stop_requested, string, thread_info::suspend, switch_to_thread_cleanup(), switch_to_thread_no_regs(), target_gdbarch(), target_is_non_stop_p(), target_pid_to_str(), target_stop(), target_thread_events(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WAITKIND_THREAD_EXITED, target_waitstatus_to_string(), thread_step_over_chain_enqueue(), thread_control_state::trap_expected, update_thread_list(), target_waitstatus::value, wait_one(), thread_suspend_state::waitstatus, and thread_suspend_state::waitstatus_pending_p.

Referenced by attach_post_wait(), keep_going_pass_signal(), process_initial_stop_replies(), resume_1(), and stop_waiting().

## ◆ thread_is_stepping_over_breakpoint()

int thread_is_stepping_over_breakpoint | ( | int | thread | ) |

Definition at line 1367 of file infrun.c.

References step_over_info::thread.

Referenced by should_be_inserted().

## ◆ update_observer_mode()

void update_observer_mode | ( | void |  | ) |

Definition at line 286 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().

## ◆ update_signals_program_target()

void update_signals_program_target | ( | void |  | ) |

Definition at line 341 of file infrun.c.

References signal_program, and target_program_signals().

Referenced by remote_start_remote().

## ◆ user_visible_resume_ptid()

ptid_t user_visible_resume_ptid | ( | int | step | ) |

Definition at line 2252 of file infrun.c.

References execution_direction, inferior_ptid, minus_one_ptid, non_stop, pid_to_ptid(), ptid_get_pid(), RESUME_ALL, sched_multi, schedlock_on, schedlock_replay, schedlock_step, scheduler_mode, target_record_will_replay(), and target_supports_multi_process().

Referenced by clear_proceed_status(), internal_resume_ptid(), prepare_one_step(), proceed(), run_inferior_call(), and signal_command().

## ◆ wait_for_inferior()

void wait_for_inferior | ( | void |  | ) |

Definition at line 3700 of file infrun.c.

References debug_infrun, delete_just_stopped_threads_infrun_breakpoints_cleanup(), discard_cleanups(), do_cleanups(), do_target_wait(), finish_thread_state_cleanup(), fprintf_unfiltered(), gdb_stdlog, handle_inferior_event(), make_cleanup(), memset(), minus_one_ptid, overlay_cache_invalid, print_target_wait_results(), execution_control_state::ptid, target_dcache_invalidate(), execution_control_state::wait_some_more, and execution_control_state::ws.

Referenced by start_remote().

## Variable Documentation

## ◆ debug_displaced

int debug_displaced

Definition at line 156 of file infrun.c.

Referenced by _initialize_infrun(), aarch64_displaced_step_copy_insn(), aarch64_displaced_step_fixup(), 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(), BP_MANIPULATION_ENDIAN(), cleanup_block_load_all(), cleanup_block_load_pc(), cleanup_block_store_pc(), cleanup_svc(), displaced_read_reg(), displaced_step_prepare_throw(), 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_1(), s390_displaced_step_copy_insn(), s390_displaced_step_fixup(), 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().

## ◆ debug_infrun

unsigned int debug_infrun

Definition at line 164 of file infrun.c.

Referenced by _initialize_infrun(), clear_proceed_status_thread(), clear_step_over_info(), context_switch(), displaced_step_prepare(), do_target_wait(), fetch_inferior_event(), finish_step_over(), follow_fork_inferior(), handle_inferior_event_1(), handle_jit_event(), handle_no_resumed(), handle_signal_stop(), handle_syscall_event(), handle_vfork_child_exec_or_exit(), infrun_async(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), insert_longjmp_resume_breakpoint(), insert_step_resume_breakpoint_at_sal_1(), keep_going_pass_signal(), keep_going_stepped_thread(), prepare_for_detach(), prepare_to_wait(), proceed(), proceed_after_vfork_done(), process_event_stop_test(), random_pending_event_thread(), restart_threads(), resume_1(), save_waitstatus(), should_be_inserted(), start_step_over(), stop_all_threads(), stop_waiting(), switch_back_to_stepped_thread(), wait_for_inferior(), and wait_one().

## ◆ disable_randomization

int disable_randomization

Definition at line 175 of file infrun.c.

Referenced by _initialize_infrun(), extended_remote_create_inferior(), linux_nat_create_inferior(), and maybe_disable_address_space_randomization::maybe_disable_address_space_randomization().

## ◆ execution_direction

enum exec_direction_kind execution_direction

Definition at line 9088 of file infrun.c.

Referenced by adjust_pc_after_break(), call_function_by_hand_dummy(), clear_proceed_status(), exec_reverse_continue(), exec_reverse_once(), fetch_inferior_event(), finish_command(), finish_command_fsm_async_reply_reason(), maybe_software_singlestep(), ppc64_plt_entry_point(), ppc64_skip_trampoline_code_1(), ppc_skip_trampoline_code(), proceed(), process_event_stop_test(), record_btrace_commit_resume(), record_btrace_resume(), record_btrace_stop(), record_btrace_wait(), record_full_core_resume(), record_full_resume(), record_full_wait_1(), record_full_wait_cleanups(), remote_commit_resume(), remote_resume(), remote_resume_with_hc(), remote_resume_with_vcont(), resume_1(), schedlock_applies(), set_exec_direction_func(), show_exec_direction_func(), and user_visible_resume_ptid().

## ◆ non_stop

int non_stop

Definition at line 204 of file infrun.c.

Referenced by attach_command(), attach_post_wait(), clean_up_just_stopped_threads_fsms(), clear_proceed_status(), continue_1(), continue_command(), exec_continue(), fetch_inferior_event(), follow_fork(), follow_fork_inferior(), get_event_thread(), handle_inferior_event_1(), handle_vfork_child_exec_or_exit(), inferior_event_handler(), info_program_command(), interrupt_command(), interrupt_target_1(), mi_cmd_exec_interrupt(), mi_on_normal_stop_1(), normal_stop(), prepare_execute_command(), proceed(), process_initial_stop_replies(), record_full_open_1(), run_command_1(), set_non_stop(), set_observer_mode(), signal_command(), stop_waiting(), target_is_non_stop_p(), target_stop_and_wait(), update_observer_mode(), and user_visible_resume_ptid().

## ◆ sched_multi

int sched_multi

Definition at line 2229 of file infrun.c.

Referenced by _initialize_infrun(), exec_continue(), follow_fork_inferior(), handle_inferior_event_1(), switch_back_to_stepped_thread(), and user_visible_resume_ptid().

## ◆ step_over_queue_head

struct thread_info* step_over_queue_head

Definition at line 1260 of file infrun.c.

Referenced by start_step_over(), thread_step_over_chain_enqueue(), thread_step_over_chain_next(), and thread_step_over_chain_remove().

## ◆ step_stop_if_no_debug

int step_stop_if_no_debug

Definition at line 135 of file infrun.c.

Referenced by _initialize_infrun(), prepare_one_step(), and process_event_stop_test().

## ◆ stop_on_solib_events

int stop_on_solib_events

Definition at line 356 of file infrun.c.

Referenced by _initialize_infrun(), handle_inferior_event_1(), internal_bkpt_check_status(), and svr4_update_solib_event_breakpoint().