GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
inferior.h File Reference
#include <exception>
#include <list>
#include "breakpoint.h"
#include "target.h"
#include "frame.h"
#include "gdbsupport/environ.h"
#include "progspace.h"
#include "registry.h"
#include "symfile-add-flags.h"
#include "gdbsupport/refcounted-object.h"
#include "gdbsupport/forward-scope-exit.h"
#include "gdbsupport/gdb_unique_ptr.h"
#include "gdbsupport/intrusive_list.h"
#include "gdbsupport/common-inferior.h"
#include "gdbthread.h"
#include "process-stratum-target.h"
#include "displaced-stepping.h"
#include <unordered_map>
#include "inferior-iter.h"

Go to the source code of this file.

Classes

struct  infcall_suspend_state_deleter
 
struct  infcall_control_state_deleter
 
struct  private_inferior
 
struct  inferior_control_state
 
struct  target_desc_info
 
class  inferior
 
class  scoped_restore_current_inferior
 
class  scoped_restore_current_inferior_for_memory
 

Typedefs

typedef std::unique_ptr< infcall_suspend_state, infcall_suspend_state_deleterinfcall_suspend_state_up
 
typedef std::unique_ptr< infcall_control_state, infcall_control_state_deleterinfcall_control_state_up
 
typedef void c_c_handler_ftype(int)
 
using delete_longjmp_breakpoint_cleanup = FORWARD_SCOPE_EXIT (delete_longjmp_breakpoint)
 

Enumerations

enum  stop_kind { NO_STOP_QUIETLY = 0 , STOP_QUIETLY , STOP_QUIETLY_REMOTE , STOP_QUIETLY_NO_SIGSTOP }
 

Functions

void restore_infcall_suspend_state (struct infcall_suspend_state *)
 
void restore_infcall_control_state (struct infcall_control_state *)
 
infcall_suspend_state_up save_infcall_suspend_state ()
 
infcall_control_state_up save_infcall_control_state ()
 
void discard_infcall_suspend_state (struct infcall_suspend_state *)
 
void discard_infcall_control_state (struct infcall_control_state *)
 
readonly_detached_regcacheget_infcall_suspend_state_regcache (struct infcall_suspend_state *)
 
void set_sigint_trap (void)
 
void clear_sigint_trap (void)
 
void generic_mourn_inferior (void)
 
CORE_ADDR unsigned_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
 
void unsigned_address_to_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
 
CORE_ADDR signed_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
 
void address_to_signed_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
 
void reopen_exec_file (void)
 
void default_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file, frame_info_ptr frame, int regnum, int all)
 
void default_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, frame_info_ptr frame, const char *args)
 
tribool is_gdb_terminal (const char *tty)
 
tribool sharing_input_terminal (int pid)
 
c_c_handler_ftypeinstall_sigint_handler (c_c_handler_ftype *fn)
 
void child_terminal_info (struct target_ops *self, const char *, int)
 
void child_terminal_ours (struct target_ops *self)
 
void child_terminal_ours_for_output (struct target_ops *self)
 
void child_terminal_inferior (struct target_ops *self)
 
void child_terminal_save_inferior (struct target_ops *self)
 
void child_terminal_init (struct target_ops *self)
 
void child_pass_ctrlc (struct target_ops *self)
 
void child_interrupt (struct target_ops *self)
 
ptid_t gdb_startup_inferior (pid_t pid, int num_traps)
 
void setup_inferior (int from_tty)
 
void post_create_inferior (int from_tty)
 
void attach_command (const char *, int)
 
void registers_info (const char *, int)
 
void continue_1 (int all_threads)
 
void interrupt_target_1 (bool all_threads)
 
void detach_command (const char *, int)
 
void notice_new_inferior (struct thread_info *, bool, int)
 
struct valueget_return_value (struct symbol *func_symbol, struct value *function)
 
void prepare_execution_command (struct target_ops *target, int background)
 
inferiorcurrent_inferior ()
 
void set_current_inferior (inferior *)
 
void switch_to_inferior_no_thread (inferior *inf)
 
gdb::optional< scoped_restore_current_threadmaybe_switch_inferior (inferior *inf)
 
struct inferioradd_inferior (int pid)
 
struct inferioradd_inferior_silent (int pid)
 
void delete_inferior (struct inferior *todel)
 
void detach_inferior (inferior *inf)
 
void exit_inferior (inferior *inf)
 
void inferior_appeared (struct inferior *inf, int pid)
 
struct inferiorfind_inferior_pid (process_stratum_target *targ, int pid)
 
struct inferiorfind_inferior_ptid (process_stratum_target *targ, ptid_t ptid)
 
struct inferiorfind_inferior_id (int num)
 
struct inferiorfind_inferior_for_program_space (struct program_space *pspace)
 
int have_inferiors (void)
 
int number_of_live_inferiors (process_stratum_target *proc_target)
 
int have_live_inferiors (void)
 
all_inferiors_safe_range all_inferiors_safe ()
 
all_inferiors_range all_inferiors (process_stratum_target *proc_target=nullptr)
 
all_non_exited_inferiors_range all_non_exited_inferiors (process_stratum_target *proc_target=nullptr)
 
void prune_inferiors (void)
 
int number_of_inferiors (void)
 
struct inferioradd_inferior_with_spaces (void)
 
void print_selected_inferior (struct ui_out *uiout)
 
void switch_to_inferior_and_push_target (inferior *new_inf, bool no_connection, inferior *org_inf)
 
bool valid_global_inferior_id (int id)
 

Variables

ptid_t inferior_ptid
 
enum stop_stack_kind stop_stack_dummy
 
int stopped_by_random_signal
 
bool print_inferior_events
 
intrusive_list< inferiorinferior_list
 

Typedef Documentation

◆ c_c_handler_ftype

typedef void c_c_handler_ftype(int)

Definition at line 183 of file inferior.h.

◆ delete_longjmp_breakpoint_cleanup

Definition at line 232 of file inferior.h.

◆ infcall_control_state_up

Definition at line 119 of file inferior.h.

◆ infcall_suspend_state_up

Definition at line 103 of file inferior.h.

Enumeration Type Documentation

◆ stop_kind

enum stop_kind
Enumerator
NO_STOP_QUIETLY 
STOP_QUIETLY 
STOP_QUIETLY_REMOTE 
STOP_QUIETLY_NO_SIGSTOP 

Definition at line 292 of file inferior.h.

Function Documentation

◆ add_inferior()

struct inferior * add_inferior ( int pid)
extern

◆ add_inferior_silent()

struct inferior * add_inferior_silent ( int pid)
extern

◆ add_inferior_with_spaces()

struct inferior * add_inferior_with_spaces ( void )
extern

◆ address_to_signed_pointer()

void address_to_signed_pointer ( struct gdbarch * gdbarch,
struct type * type,
gdb_byte * buf,
CORE_ADDR addr )
extern

Definition at line 336 of file findvar.c.

References type::length(), store_signed_integer(), and type_byte_order().

Referenced by mips_gdbarch_init().

◆ all_inferiors()

all_inferiors_range all_inferiors ( process_stratum_target * proc_target = nullptr)
inline

Definition at line 821 of file inferior.h.

References inferior_list.

Referenced by ada_tasks_clear_pspace_data(), program_space::add_target_sections(), amd_dbgapi_target::async(), auxv_all_objfiles_removed(), bplocpy_get_thread_groups(), breakpoints_should_be_inserted_now(), check_zombie_leaders(), child_pass_ctrlc(), gdbsim_target::close(), consume_one_event(), darwin_find_inferior_by_pid(), darwin_find_inferior_by_task(), target_ops_ref_policy::decref(), do_target_wait(), exists_non_stop_target(), find_inferior_for_program_space(), find_inferior_id(), find_inferior_pid(), gdbpy_inferiors(), get_sim_inferior_data(), mi_interp::init(), init_thread_list(), gdbsim_target::interrupt(), interrupt_target_1(), linux_nat_filter_event(), mi_cmd_exec_run(), mi_cmd_list_thread_groups(), mi_cmd_remove_inferior(), number_of_inferiors(), print_inferior(), print_one_breakpoint_location(), print_program_space(), print_thread_info_1(), quit_confirm(), quit_force(), remote_target::remote_add_inferior(), remote_objfile_changed_check_symbols(), remote_unpush_target(), program_space::remove_target_sections(), require_forward_progress(), target_terminal::restore_inferior(), darwin_nat_target::resume(), gdbsim_target::resume(), remote_target::start_remote_1(), amd_dbgapi_target::stop(), switch_to_target_no_thread(), target_pass_ctrlc(), target_terminal_is_ours_kind(), update_address_spaces(), update_global_location_list(), amd_dbgapi_target::update_thread_list(), thread_db_target::update_thread_list(), valid_global_inferior_id(), amd_dbgapi_target::wait(), darwin_nat_target::wait_1(), and wait_one().

◆ all_inferiors_safe()

all_inferiors_safe_range all_inferiors_safe ( )
inline

Definition at line 808 of file inferior.h.

References inferior_list.

Referenced by prune_inferiors().

◆ all_non_exited_inferiors()

all_non_exited_inferiors_range all_non_exited_inferiors ( process_stratum_target * proc_target = nullptr)
inline

◆ attach_command()

void attach_command ( const char * args,
int from_tty )
extern

◆ child_interrupt()

void child_interrupt ( struct target_ops * self)
extern

Definition at line 505 of file inflow.c.

References all_non_exited_threads(), thread_info::inf, and inferior::pid.

Referenced by inf_child_target::interrupt().

◆ child_pass_ctrlc()

void child_pass_ctrlc ( struct target_ops * self)
extern

◆ child_terminal_inferior()

void child_terminal_inferior ( struct target_ops * self)
extern

◆ child_terminal_info()

void child_terminal_info ( struct target_ops * self,
const char * args,
int from_tty )
extern

◆ child_terminal_init()

void child_terminal_init ( struct target_ops * self)
extern

◆ child_terminal_ours()

void child_terminal_ours ( struct target_ops * self)
extern

Definition at line 403 of file inflow.c.

References child_terminal_ours_1(), and is_ours.

Referenced by inf_child_target::terminal_ours().

◆ child_terminal_ours_for_output()

void child_terminal_ours_for_output ( struct target_ops * self)
extern

Definition at line 389 of file inflow.c.

References child_terminal_ours_1(), and is_ours_for_output.

Referenced by inf_child_target::terminal_ours_for_output().

◆ child_terminal_save_inferior()

void child_terminal_save_inferior ( struct target_ops * self)
extern

◆ clear_sigint_trap()

void clear_sigint_trap ( void )
extern

◆ continue_1()

void continue_1 ( int all_threads)
extern

◆ current_inferior()

inferior * current_inferior ( )
extern

Definition at line 55 of file inferior.c.

References current_inferior_.

Referenced by aarch64_fbsd_get_thread_local_address(), aarch64_remove_non_address_bits(), ada_build_task_list(), ada_exception_name_addr_1(), ada_exception_support_info_sniffer(), ada_exception_sym_name(), ada_get_task_info_from_ptid(), ada_get_tsd_from_tag(), ada_tasks_normal_stop_observer(), ada_unhandled_exception_name_addr_from_raise(), add_inferior_command(), ravenscar_thread_target::add_thread(), add_thread_db_info(), advance_command(), alpha_heuristic_proc_start(), amd64fbsd_get_thread_local_address(), amd_dbgapi_target_signal_received(), any_live_thread_of_inferior(), any_thread_of_inferior(), arm_fbsd_get_thread_local_address(), arm_fbsd_read_description_auxv(), arm_pc_is_thumb(), amd_dbgapi_target::async(), darwin_nat_target::attach(), fbsd_nat_target::attach(), gnu_nat_target::attach(), inf_ptrace_target::attach(), procfs_target::attach(), extended_remote_target::attach(), nto_procfs_target::attach(), attach_command(), attach_post_wait(), avr_io_reg_read_command(), target_ops::beneath(), BP_MANIPULATION_ENDIAN(), bpfinishpy_detect_out_scope_cb(), bsd_kvm_target_open(), bsd_uthread_activate(), bsd_uthread_deactivate(), btrace_read_config(), captured_main_1(), catch_syscall_enabled(), stop_context::changed(), check_for_thread_db(), check_multi_target_resumption(), amd_dbgapi_target_breakpoint::check_status(), child_terminal_inferior(), child_terminal_info(), child_terminal_init(), child_terminal_save_inferior(), core_target::clear_core(), clear_proceed_status(), clone_inferior_command(), bsd_kvm_target::close(), record_btrace_target::close(), tfile_target::close(), cmd_record_stop(), amd_dbgapi_target::commit_resumed(), consume_one_event(), continue_command(), convert_linespec_to_sals(), core_file_command(), core_target_open(), fbsd_nat_target::create_inferior(), gnu_nat_target::create_inferior(), go32_nat_target::create_inferior(), inf_ptrace_target::create_inferior(), nto_procfs_target::create_inferior(), procfs_target::create_inferior(), gdbsim_target::create_inferior(), windows_nat_target::create_inferior(), create_internal_breakpoint(), darwin_get_dyld_bfd(), darwin_solib_read_all_image_info_addr(), dcache_read_memory_partial(), default_search_memory(), default_verify_memory(), linux_nat_target::detach(), detach_breakpoints(), detach_command(), record_btrace_target::disconnect(), display_current_task_id(), display_one_tib(), do_attach(), windows_nat_target::do_initial_windows_stuff(), dsbt_get_initial_loadmaps(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolve_by_got(), elf_gnu_ifunc_resolver_return_stop(), elf_gnu_ifunc_resolver_stop(), elf_none_make_corefile_notes(), enable_break(), environment_info(), eval_op_objc_msgcall(), exec_continue(), exec_file_locate_attach(), remote_target::extended_remote_environment_support(), remote_target::extended_remote_set_inferior_cwd(), fbsd_make_corefile_notes(), fbsd_make_note_desc(), fbsd_vdso_range(), fetch_altivec_registers_aix(), aix_thread_target::fetch_registers(), record_btrace_target::fetch_registers(), fetch_vsx_registers_aix(), inf_ptrace_target::files_info(), nto_procfs_target::files_info(), procfs_target::files_info(), gdbsim_target::files_info(), windows_nat_target::files_info(), linux_nat_target::filesystem_is_local(), find_attach_target(), find_function_addr(), find_inferior_for_program_space(), find_run_target(), find_target_at(), find_thread_waiting_for_vfork_done(), finish_command(), fbsd_nat_target::follow_exec(), thread_db_target::follow_exec(), inf_child_target::follow_exec(), process_stratum_target::follow_exec(), follow_exec(), follow_fork_inferior(), fprint_target_auxv(), frscm_get_frame_smob_arg_unsafe(), gcore_find_signalled_thread(), gdb_bfd_open(), gdb_startup_inferior(), gdbpy_selected_inferior(), gdbscm_newest_frame(), gdbscm_selected_frame(), gdbsim_target_open(), gdbsim_xfer_memory(), generic_mourn_inferior(), darwin_nat_target::get_ada_task_ptid(), get_args_value(), get_current_core_target(), get_current_remote_target(), get_inferior_cwd(), get_precise_memory_mode(), get_task_from_args(), get_thread_data_helper_for_pid(), get_thread_data_helper_for_ptid(), get_thread_regcache_for_ptid(), get_tty_value(), gnuv3_skip_trampoline(), handle_inferior_event(), handle_no_resumed(), handle_signal_stop(), handle_solib_event(), handle_vfork_child_exec_or_exit(), gdbsim_target::has_all_memory(), gdbsim_target::has_memory(), heuristic_proc_start(), i386fbsd_get_thread_local_address(), increment_bfd_error_count(), inf_child_open_target(), inf_has_multiple_threads(), infcall_suspend_state::infcall_suspend_state(), target_terminal::inferior(), inferior_command(), inferior_event_handler(), inferior_id_make_value(), inferior_thread_count_make_value(), target_terminal::info(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_region_command(), info_target_command(), info_tasks_command(), infrun_thread_ptid_changed(), infrun_thread_stop_requested(), target_terminal::init(), init_entry_point_info(), syscall_catchpoint::insert_location(), inside_main_func(), darwin_nat_target::interrupt(), call_site_target::iterate_over_addresses(), iterate_over_live_ada_tasks(), jit_reader_load_command(), jit_reader_unload_command(), jump_command(), darwin_nat_target::kill(), fbsd_nat_target::kill(), linux_nat_target::kill(), record_full_core_target::kill(), kill_command(), linux_displaced_step_location(), linux_fill_prpsinfo(), linux_find_memory_regions_full(), linux_get_hwcap(), linux_get_hwcap2(), linux_get_siginfo_data(), linux_info_proc(), linux_make_corefile_notes(), linux_process_address_in_memtag_page(), linux_vsyscall_range(), linux_vsyscall_range_raw(), gdbsim_target::load(), maint_btrace_packet_history_cmd(), maint_info_jit_cmd(), maint_print_c_tdesc_cmd(), maint_print_xml_tdesc_cmd(), maintenance_check_libthread_db(), maintenance_info_target_sections(), maintenance_print_target_stack(), procfs_target::make_corefile_notes(), maybe_switch_inferior(), inf_child_target::maybe_unpush_target(), gdbsim_target::memory_map(), remote_target::memory_map(), memory_xfer_auxv(), memory_xfer_partial_1(), mi_cmd_ada_task_info(), mi_cmd_add_inferior(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), mi_cmd_env_path(), mi_cmd_inferior_tty_set(), mi_cmd_inferior_tty_show(), mi_cmd_remove_inferior(), mi_output_solib_attribs(), aix_thread_target::mourn_inferior(), amd_dbgapi_target::mourn_inferior(), darwin_nat_target::mourn_inferior(), fbsd_nat_target::mourn_inferior(), thread_db_target::mourn_inferior(), ravenscar_thread_target::mourn_inferior(), remote_target::mourn_inferior(), sol_thread_target::mourn_inferior(), msymbol_is_function(), new_objfile(), new_tty_postfork(), notice_new_inferior(), nto_inferior_data(), mi_interp::on_solib_unloaded(), mi_interp::on_target_resumed(), remote_target::open_1(), target_unpusher::operator()(), parse_thread_id(), path_command(), path_info(), pd_disable(), pd_enable(), pdc_read_data(), pdc_write_data(), remote_target::pid_to_exec_file(), thread_db_target::pid_to_str(), post_create_inferior(), postfork_hook(), ppcfbsd_get_thread_local_address(), prefork_hook(), prepare_for_detach(), print_connection(), print_exited_reason(), print_function_pointer_address(), print_inferior(), print_selected_inferior(), print_thread_info_1(), process_one_event(), ps_lgetfpregs(), ps_lgetregs(), ps_lsetfpregs(), ps_lsetregs(), darwin_nat_target::ptrace_him(), py_get_event_thread(), remote_target::read_btrace(), read_known_tasks(), read_known_tasks_array(), read_known_tasks_list(), read_memory_object(), read_ptid(), read_value_memory(), record_btrace_push_target(), record_btrace_target_open(), record_full_core_open_1(), record_full_open(), record_full_open_1(), record_full_wait_1(), record_btrace_target::record_is_replaying(), record_btrace_target::record_method(), record_btrace_target::record_stop_replaying(), record_unpush(), registers_changed_ptid(), remote_target::remote_add_inferior(), remote_target::remote_check_symbols(), remote_target::remote_detach_1(), syscall_catchpoint::remove_location(), infcall_suspend_state::restore(), restore_infcall_control_state(), target_terminal::restore_inferior(), aix_thread_target::resume(), amd_dbgapi_target::resume(), record_btrace_target::resume(), record_full_target::resume(), resume_1(), riscv_fbsd_get_thread_local_address(), rocm_solib_bfd_open(), rocm_solib_create_inferior_hook(), rocm_solib_current_sos(), rocm_solib_target_inferior_created(), rocm_update_solib_list(), run_command_1(), s390_load(), save_infcall_control_state(), scoped_restore_current_thread::scoped_restore_current_thread(), sdata_make_value(), section_table_read_available_memory(), set_args_value(), set_cwd_value(), set_enable_mach_exceptions(), set_environment_command(), set_precise_memory_mode(), set_sigint_trap(), set_target_gdbarch(), set_tdesc_filename_cmd(), set_tty_value(), setup_inferior(), show_args_command(), show_cwd_command(), show_inferior_tty_command(), show_precise_memory_mode(), show_tdesc_filename_cmd(), siginfo_value_read(), siginfo_value_write(), signal_command(), sim_command_completer(), simulator_command(), sol2_core_pid_to_str(), sol_update_thread_list_callback(), solib_aix_current_sos(), solib_aix_get_library_list(), solib_aix_normal_stop_observer(), solib_aix_solib_create_inferior_hook(), solib_find_1(), solib_read_symbols(), solib_target_current_sos(), sparc_fetch_wcookie(), start_remote(), step_1(), amd_dbgapi_target::stop(), record_btrace_target::stop(), stop_context::stop_context(), stop_current_target_threads_ns(), record_btrace_target::stop_recording(), nto_procfs_target::stopped_by_watchpoint(), aix_thread_target::store_registers(), symbol_file_add_main_1(), sync_threadlists(), target_always_non_stop_p(), target_async(), target_attach_no_wait(), target_augmented_libraries_svr4_read(), target_auxv_search(), target_btrace_conf(), target_call_history(), target_call_history_from(), target_call_history_range(), target_can_accel_watchpoint_condition(), target_can_async_p(), target_can_do_single_step(), target_can_download_tracepoint(), target_can_execute_reverse(), target_can_lock_scheduler(), target_can_run(), target_can_run_breakpoint_commands(), target_can_use_agent(), target_can_use_hardware_watchpoint(), target_clear_description(), target_commit_resumed(), target_core_of_thread(), target_current_description(), target_delete_record(), target_detach(), target_disable_btrace(), target_disable_tracepoint(), target_disconnect(), target_done_generating_core(), target_download_trace_state_variable(), target_download_tracepoint(), target_dumpcore(), target_enable_btrace(), target_enable_tracepoint(), target_execution_direction(), target_extra_thread_info(), target_fetch_memtags(), target_fetch_registers(), target_fetch_x86_xsave_layout(), target_files_info(), target_filesystem_is_local(), target_find_description(), target_find_memory_regions(), target_flash_done(), target_flash_erase(), target_follow_exec(), target_follow_fork(), target_gdbarch(), target_get_ada_task_ptid(), target_get_bookmark(), target_get_min_fast_tracepoint_insn_len(), target_get_raw_trace_data(), target_get_tailcall_unwinder(), target_get_tib_address(), target_get_trace_state_variable_value(), target_get_trace_status(), target_get_tracepoint_status(), target_get_unwinder(), target_goto_bookmark(), target_goto_record(), target_goto_record_begin(), target_goto_record_end(), target_has_execution(), target_has_memory(), target_has_pending_events(), target_has_registers(), target_has_stack(), target_have_steppable_watchpoint(), target_insert_breakpoint(), target_insert_exec_catchpoint(), target_insert_fork_catchpoint(), target_insert_hw_breakpoint(), target_insert_mask_watchpoint(), target_insert_vfork_catchpoint(), target_insert_watchpoint(), target_insn_history(), target_insn_history_from(), target_insn_history_range(), target_interrupt(), target_is_async_p(), target_kill(), target_load(), target_log_command(), target_make_corefile_notes(), target_masked_watch_num_registers(), target_memory_map(), target_mourn_inferior(), target_pass_ctrlc(), target_pass_signals(), target_pid_to_exec_file(), target_pid_to_str(), target_post_attach(), target_pre_inferior(), target_preopen(), target_prepare_to_generate_core(), target_prepare_to_store(), target_program_signals(), target_ranged_break_num_registers(), target_rcmd(), target_read_auxv(), target_read_btrace(), target_read_code(), target_read_memory(), target_read_raw_memory(), target_read_stack(), target_record_is_replaying(), target_record_method(), target_record_stop_replaying(), target_record_will_replay(), target_region_ok_for_hw_watchpoint(), target_remove_breakpoint(), target_remove_exec_catchpoint(), target_remove_fork_catchpoint(), target_remove_hw_breakpoint(), target_remove_mask_watchpoint(), target_remove_vfork_catchpoint(), target_remove_watchpoint(), target_require_runnable(), target_resume(), target_save_record(), target_save_trace_data(), target_search_memory(), target_set_circular_trace_buffer(), target_set_disconnected_tracing(), target_set_permissions(), target_set_syscall_catchpoint(), target_set_trace_buffer_size(), target_set_trace_notes(), target_shortname(), target_static_tracepoint_marker_at(), target_static_tracepoint_markers_by_strid(), target_stop(), target_stop_recording(), target_stopped_by_hw_breakpoint(), target_stopped_by_sw_breakpoint(), target_stopped_by_watchpoint(), target_store_memtags(), target_store_registers(), target_supports_delete_record(), target_supports_disable_randomization(), target_supports_dumpcore(), target_supports_enable_disable_tracepoint(), target_supports_evaluation_of_breakpoint_conditions(), target_supports_memory_tagging(), target_supports_multi_process(), target_supports_stopped_by_hw_breakpoint(), target_supports_stopped_by_sw_breakpoint(), target_supports_string_tracing(), target_supports_terminal_ours(), target_teardown_btrace(), target_terminal_is_ours_kind(), target_thread_address_space(), target_thread_alive(), target_thread_architecture(), target_thread_events(), target_thread_handle_to_thread_info(), target_thread_info_to_thread_handle(), target_thread_name(), target_trace_find(), target_trace_init(), target_trace_set_readonly_regions(), target_trace_start(), target_trace_stop(), target_traceframe_info(), target_translate_tls_address(), target_update_thread_list(), target_upload_trace_state_variables(), target_upload_tracepoints(), target_use_agent(), target_verify_memory(), target_wait(), target_write_memory(), target_write_memory_blocks(), target_write_raw_memory(), task_apply_all_command(), task_apply_command(), task_command(), tcomplain(), selftests::test_user_created_frame(), tfile_target_open(), tfile_write_tdesc(), aix_thread_target::thread_alive(), thread_alive(), thread_apply_command(), thread_apply_command_completer(), thread_db_load(), thread_name(), remote_target::traceframe_info(), try_thread_db_load(), try_thread_db_load_1(), inferior::unpush_target_and_assert(), unset_environment_command(), unset_tdesc_filename_cmd(), until_command(), update_solib_list(), nto_procfs_target::update_thread_list(), update_threads_executing(), user_visible_resume_target(), valid_task_id(), validate_exec_file(), value_assign(), value_fn_field(), aix_thread_target::wait(), amd_dbgapi_target::wait(), procfs_target::wait(), record_btrace_target::wait(), gdbsim_target::wait(), sol_thread_target::wait(), watchpoints_triggered(), write_memory_with_notification(), amd_dbgapi_target::xfer_partial(), and darwin_nat_target::xfer_partial().

◆ default_print_float_info()

void default_print_float_info ( struct gdbarch * gdbarch,
struct ui_file * file,
frame_info_ptr frame,
const char * args )
extern

◆ default_print_registers_info()

void default_print_registers_info ( struct gdbarch * gdbarch,
struct ui_file * file,
frame_info_ptr frame,
int regnum,
int all )
extern

◆ delete_inferior()

void delete_inferior ( struct inferior * todel)
extern

◆ detach_command()

void detach_command ( const char * args,
int from_tty )
extern

◆ detach_inferior()

void detach_inferior ( inferior * inf)
extern

◆ discard_infcall_control_state()

void discard_infcall_control_state ( struct infcall_control_state * inf_status)
extern

◆ discard_infcall_suspend_state()

void discard_infcall_suspend_state ( struct infcall_suspend_state * inf_state)
extern

Definition at line 9641 of file infrun.c.

Referenced by remove_dummy_frame(), and restore_infcall_suspend_state().

◆ exit_inferior()

void exit_inferior ( inferior * inf)
extern

◆ find_inferior_for_program_space()

struct inferior * find_inferior_for_program_space ( struct program_space * pspace)
extern

◆ find_inferior_id()

struct inferior * find_inferior_id ( int num)
extern

◆ find_inferior_pid()

struct inferior * find_inferior_pid ( process_stratum_target * targ,
int pid )
extern

◆ find_inferior_ptid()

struct inferior * find_inferior_ptid ( process_stratum_target * targ,
ptid_t ptid )
extern

◆ gdb_startup_inferior()

ptid_t gdb_startup_inferior ( pid_t pid,
int num_traps )
extern

◆ generic_mourn_inferior()

void generic_mourn_inferior ( void )
extern

◆ get_infcall_suspend_state_regcache()

readonly_detached_regcache * get_infcall_suspend_state_regcache ( struct infcall_suspend_state * inf_state)
extern

Definition at line 9647 of file infrun.c.

References infcall_suspend_state::registers().

Referenced by dummy_frame_sniffer().

◆ get_return_value()

struct value * get_return_value ( struct symbol * func_symbol,
struct value * function )
extern

◆ have_inferiors()

int have_inferiors ( void )
extern

Definition at line 429 of file inferior.c.

References all_non_exited_inferiors().

◆ have_live_inferiors()

int have_live_inferiors ( void )
extern

◆ inferior_appeared()

void inferior_appeared ( struct inferior * inf,
int pid )
extern

◆ install_sigint_handler()

c_c_handler_ftype * install_sigint_handler ( c_c_handler_ftype * fn)
extern

◆ interrupt_target_1()

void interrupt_target_1 ( bool all_threads)
extern

◆ is_gdb_terminal()

tribool is_gdb_terminal ( const char * tty)
extern

Definition at line 218 of file inflow.c.

Referenced by sharing_input_terminal(), and sharing_input_terminal().

◆ maybe_switch_inferior()

gdb::optional< scoped_restore_current_thread > maybe_switch_inferior ( inferior * inf)
extern

Definition at line 722 of file inferior.c.

References current_inferior(), and switch_to_inferior_no_thread().

Referenced by regcache::raw_update(), and regcache::raw_write().

◆ notice_new_inferior()

void notice_new_inferior ( struct thread_info * thr,
bool leave_running,
int from_tty )
extern

◆ number_of_inferiors()

int number_of_inferiors ( void )
extern

Definition at line 487 of file inferior.c.

References all_inferiors().

Referenced by print_one_breakpoint_location().

◆ number_of_live_inferiors()

int number_of_live_inferiors ( process_stratum_target * proc_target)
extern

◆ post_create_inferior()

void post_create_inferior ( int from_tty)
extern

◆ prepare_execution_command()

void prepare_execution_command ( struct target_ops * target,
int background )
extern

◆ print_selected_inferior()

void print_selected_inferior ( struct ui_out * uiout)
extern

◆ prune_inferiors()

void prune_inferiors ( void )
extern

Definition at line 471 of file inferior.c.

References all_inferiors_safe(), delete_inferior(), and inf::pid.

Referenced by fetch_inferior_event().

◆ registers_info()

void registers_info ( const char * addr_exp,
int fpregs )
extern

◆ reopen_exec_file()

void reopen_exec_file ( void )
extern

◆ restore_infcall_control_state()

void restore_infcall_control_state ( struct infcall_control_state * inf_status)
extern

◆ restore_infcall_suspend_state()

void restore_infcall_suspend_state ( struct infcall_suspend_state * inf_state)
extern

◆ save_infcall_control_state()

infcall_control_state_up save_infcall_control_state ( )
extern

◆ save_infcall_suspend_state()

infcall_suspend_state_up save_infcall_suspend_state ( )
extern

◆ set_current_inferior()

void set_current_inferior ( inferior * inf)
extern

◆ set_sigint_trap()

void set_sigint_trap ( void )
extern

◆ setup_inferior()

void setup_inferior ( int from_tty)
extern

◆ sharing_input_terminal()

tribool sharing_input_terminal ( int pid)
extern

Definition at line 379 of file mingw-hdep.c.

References is_gdb_terminal(), and pid.

◆ signed_pointer_to_address()

CORE_ADDR signed_pointer_to_address ( struct gdbarch * gdbarch,
struct type * type,
const gdb_byte * buf )
extern

Definition at line 316 of file findvar.c.

References extract_signed_integer(), type::length(), and type_byte_order().

Referenced by mips_gdbarch_init().

◆ switch_to_inferior_and_push_target()

void switch_to_inferior_and_push_target ( inferior * new_inf,
bool no_connection,
inferior * org_inf )
extern

◆ switch_to_inferior_no_thread()

void switch_to_inferior_no_thread ( inferior * inf)
extern

◆ unsigned_address_to_pointer()

void unsigned_address_to_pointer ( struct gdbarch * gdbarch,
struct type * type,
gdb_byte * buf,
CORE_ADDR addr )
extern

Definition at line 327 of file findvar.c.

References type::length(), store_unsigned_integer(), and type_byte_order().

◆ unsigned_pointer_to_address()

CORE_ADDR unsigned_pointer_to_address ( struct gdbarch * gdbarch,
struct type * type,
const gdb_byte * buf )
extern

Definition at line 307 of file findvar.c.

References extract_unsigned_integer(), type::length(), and type_byte_order().

◆ valid_global_inferior_id()

bool valid_global_inferior_id ( int id)
inline

Variable Documentation

◆ inferior_list

intrusive_list<inferior> inferior_list
extern

◆ inferior_ptid

ptid_t inferior_ptid
extern

Definition at line 74 of file infcmd.c.

Referenced by aarch64_insert_hw_breakpoint(), aarch64_insert_watchpoint(), aarch64_remove_hw_breakpoint(), aarch64_remove_non_address_bits(), aarch64_remove_watchpoint(), add_thread_db_info(), adi_align_address(), adi_assign_command(), adi_available(), adi_convert_byte_count(), adi_is_addr_mapped(), adi_normalize_address(), adi_print_versions(), adi_read_versions(), adi_tag_fd(), adi_write_versions(), amdgpu_register_name(), any_live_thread_of_inferior(), any_thread_of_inferior(), remote_target::append_pending_thread_resumptions(), arm_linux_get_hwbp_cap(), arm_linux_insert_hw_breakpoint1(), arm_linux_remove_hw_breakpoint1(), darwin_nat_target::attach(), linux_nat_target::attach(), extended_remote_target::attach(), attach_command(), ppc_linux_nat_target::auxv_parse(), bpfinishpy_init(), bpstat_clear_actions(), breakpoint_about_to_proceed(), call_function_by_hand_dummy(), ppc_linux_nat_target::can_accel_watchpoint_condition(), mips_linux_nat_target::can_use_hw_breakpoint(), ppc_linux_nat_target::can_use_hw_breakpoint(), ppc_linux_nat_target::can_use_watchpoint_cond_accel(), stop_context::changed(), check_for_thread_db(), check_stopped_by_watchpoint(), checkpoint_command(), child_terminal_info(), clear_proceed_status(), windows_nat_target::close(), cmd_record_delete(), cmd_record_save(), context_switch(), ravenscar_thread_target::core_of_thread(), core_target_open(), gnu_nat_target::create_inferior(), linux_nat_target::create_inferior(), gdbsim_target::create_inferior(), create_stop_event_object(), cur_thread(), current_lwp_ptid(), dcache_read_memory_partial(), default_get_ada_task_ptid(), delete_checkpoint_command(), delete_fork(), sol_thread_target::detach(), inf_ptrace_target::detach(), detach_breakpoints(), detach_checkpoint_command(), detach_command(), dtrace_probe::disable(), display_selectors(), display_tib(), do_detach(), nbsd_nat_target::dumpcore(), dtrace_probe::enable(), enable_break(), ensure_valid_thread(), expression::evaluate(), fbsd_core_xfer_siginfo(), fetch_inferior_event(), aarch64_linux_nat_target::fetch_memtags(), bsd_uthread_target::fetch_registers(), fetch_regs_user_thread(), fbsd_nat_target::find_memory_regions(), nbsd_nat_target::find_memory_regions(), procfs_target::find_memory_regions(), find_signalled_thread(), find_signalled_thread(), follow_fork(), linux_nat_target::follow_fork(), follow_fork_inferior(), for_each_just_stopped_thread(), gcore_command(), gdbpy_selected_thread(), aix_thread_target::get_ada_task_ptid(), darwin_nat_target::get_ada_task_ptid(), thread_db_target::get_ada_task_ptid(), remote_target::get_ada_task_ptid(), windows_nat_target::get_ada_task_ptid(), get_bpstat_thread(), remote_target::get_current_thread(), get_task_from_args(), get_thread_current_frame_id(), windows_nat_target::get_windows_debug_event(), handle_inferior_event(), process_stratum_target::has_all_memory(), user_selected_context::has_changed(), process_stratum_target::has_memory(), process_stratum_target::has_registers(), process_stratum_target::has_stack(), has_stack_frames(), i386_darwin_dr_get(), i386_darwin_dr_set(), gnu_nat_target::inf_validate_procs(), inferior_event_handler(), inferior_thread_count_make_value(), info_checkpoints_command(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_region_command(), fbsd_nat_target::info_proc(), nbsd_nat_target::info_proc(), procfs_target::info_proc(), info_program_command(), record_btrace_target::info_record(), infrun_thread_ptid_changed(), insert_breakpoint_locations(), ppc_linux_nat_target::insert_hw_breakpoint(), s390_linux_nat_target::insert_hw_breakpoint(), exec_catchpoint::insert_location(), fork_catchpoint::insert_location(), syscall_catchpoint::insert_location(), ppc_linux_nat_target::insert_mask_watchpoint(), mips_linux_nat_target::insert_watchpoint(), ppc_linux_nat_target::insert_watchpoint(), procfs_target::insert_watchpoint(), s390_linux_nat_target::insert_watchpoint(), internal_resume_ptid(), interrupt_query(), interrupt_target_1(), keep_going_pass_signal(), darwin_nat_target::kill(), fbsd_nat_target::kill(), gnu_nat_target::kill(), inf_ptrace_target::kill(), linux_nat_target::kill(), nto_procfs_target::kill(), procfs_target::kill(), gdbsim_target::kill(), remote_target::kill(), windows_nat_target::kill(), kill_command(), kill_if_already_running(), linux_core_xfer_siginfo(), linux_fill_prpsinfo(), linux_fork_context(), linux_fork_detach(), linux_fork_mourn_inferior(), linux_nat_switch_fork(), ppc_linux_nat_target::low_stopped_data_address(), maint_btrace_clear_cmd(), maint_btrace_clear_packet_history_cmd(), maint_btrace_packet_history_cmd(), maint_info_btrace_cmd(), maintenance_check_libthread_db(), procfs_target::make_corefile_notes(), tui_locator_window::make_status_line(), ppc_linux_nat_target::masked_watch_num_registers(), memory_xfer_partial_1(), mi_cmd_thread_list_ids(), mi_cmd_var_update_iter(), inf_ptrace_target::mourn_inferior(), linux_nat_target::mourn_inferior(), thread_db_target::mourn_inferior(), nto_procfs_target::mourn_inferior(), procfs_target::mourn_inferior(), nbsd_add_threads(), normal_stop(), notice_new_inferior(), mi_interp::on_about_to_proceed(), cli_interp_base::on_user_selected_context_changed(), mi_interp::on_user_selected_context_changed(), pass_signal(), procfs_target::pass_signals(), pd_disable(), prepare_one_step(), print_ada_task_info(), print_selected_thread_frame(), print_thread_info_1(), proc_set_current_signal(), proc_trace_syscalls(), procfs_set_watchpoint(), procfs_xfer_auxv(), procfs_xfer_memory(), python_on_normal_stop(), ppc_linux_nat_target::ranged_break_num_registers(), raw_memory_xfer_partial(), aarch64_fbsd_nat_target::read_description(), aarch64_linux_nat_target::read_description(), amd64_fbsd_nat_target::read_description(), arm_fbsd_nat_target::read_description(), arm_linux_nat_target::read_description(), i386_fbsd_nat_target::read_description(), mips_linux_nat_target::read_description(), ppc_linux_nat_target::read_description(), remote_target::read_description(), riscv_linux_nat_target::read_description(), s390_linux_nat_target::read_description(), x86_linux_nat_target::read_description(), record_full_wait_1(), record_mourn_inferior(), mips_linux_nat_target::region_ok_for_hw_watchpoint(), ppc_linux_nat_target::region_ok_for_hw_watchpoint(), registers_changed_ptid(), remote_target::remote_detach_1(), remote_newthread_step(), remote_target::remote_notice_new_inferior(), remote_target::remote_resume_with_vcont(), ppc_linux_nat_target::remove_hw_breakpoint(), s390_linux_nat_target::remove_hw_breakpoint(), exec_catchpoint::remove_location(), fork_catchpoint::remove_location(), syscall_catchpoint::remove_location(), ppc_linux_nat_target::remove_mask_watchpoint(), ppc_linux_nat_target::remove_watchpoint(), procfs_target::remove_watchpoint(), s390_linux_nat_target::remove_watchpoint(), require_btrace_thread(), scoped_restore_current_thread::restore(), resume(), aix_thread_target::resume(), amd_dbgapi_target::resume(), darwin_nat_target::resume(), fbsd_nat_target::resume(), gnu_nat_target::resume(), i386_fbsd_nat_target::resume(), inf_ptrace_target::resume(), linux_nat_target::resume(), thread_db_target::resume(), nto_procfs_target::resume(), procfs_target::resume(), ravenscar_thread_target::resume(), record_btrace_target::resume(), record_full_target::resume(), remote_target::resume(), sol_thread_target::resume(), windows_nat_target::resume(), resume_1(), fbsd_nat_target::resume_one_process(), run_inferior_call(), rw_common(), s390_inferior_tid(), scoped_restore_current_inferior_for_memory::scoped_restore_current_inferior_for_memory(), scoped_restore_current_thread::scoped_restore_current_thread(), scoped_switch_fork_info::scoped_switch_fork_info(), set_enable_mach_exceptions(), remote_target::set_general_process(), set_step_frame(), set_step_info(), setup_inferior(), siginfo_make_value(), sparc32obsd_collect_uthread(), sparc32obsd_supply_uthread(), sparc64obsd_collect_uthread(), sparc64obsd_supply_uthread(), sparc_collect_rwindow(), sparc_fetch_inferior_registers(), sparc_store_inferior_registers(), sparc_supply_rwindow(), sparc_xfer_wcookie(), linux_nat_target::static_tracepoint_markers_by_strid(), stop_context::stop_context(), amd_dbgapi_target::stopped_by_hw_breakpoint(), linux_nat_target::stopped_by_hw_breakpoint(), ravenscar_thread_target::stopped_by_hw_breakpoint(), amd_dbgapi_target::stopped_by_sw_breakpoint(), linux_nat_target::stopped_by_sw_breakpoint(), ravenscar_thread_target::stopped_by_sw_breakpoint(), windows_nat_target::stopped_by_sw_breakpoint(), amd_dbgapi_target::stopped_by_watchpoint(), linux_nat_target::stopped_by_watchpoint(), mips_linux_nat_target::stopped_by_watchpoint(), procfs_target::stopped_by_watchpoint(), ravenscar_thread_target::stopped_by_watchpoint(), s390_linux_nat_target::stopped_by_watchpoint(), aarch64_linux_nat_target::stopped_data_address(), arm_linux_nat_target::stopped_data_address(), ia64_linux_nat_target::stopped_data_address(), linux_nat_target::stopped_data_address(), procfs_target::stopped_data_address(), ravenscar_thread_target::stopped_data_address(), store_altivec_register_aix(), aarch64_linux_nat_target::store_memtags(), bsd_uthread_target::store_registers(), store_regs_user_thread(), store_vsx_register_aix(), switch_to_no_thread(), switch_to_thread_no_regs(), target_announce_detach(), target_mourn_inferior(), target_resume(), target_translate_tls_address(), thread_command(), thread_db_load(), thread_name_command(), thread_num_make_value_helper(), tlb_make_value(), tlb_value_read(), try_thread_db_load(), try_thread_db_load_1(), update_inserted_breakpoint_locations(), update_previous_thread(), update_solib_list(), bsd_uthread_target::update_thread_list(), fbsd_nat_target::update_thread_list(), obsd_nat_target::update_thread_list(), procfs_target::update_thread_list(), ravenscar_thread_target::update_thread_list(), remote_target::update_thread_list(), user_visible_resume_ptid(), validate_registers_access(), bsd_uthread_target::wait(), nto_procfs_target::wait(), watch_command_1(), watchpoint_in_thread_scope(), windows_solib_create_inferior_hook(), write_memory_ptid(), x86_cleanup_dregs(), x86_insert_hw_breakpoint(), x86_insert_watchpoint(), x86_region_ok_for_hw_watchpoint(), x86_remove_hw_breakpoint(), x86_remove_watchpoint(), x86_stopped_by_hw_breakpoint(), x86_stopped_by_watchpoint(), x86_stopped_data_address(), aix_thread_target::xfer_partial(), amd_dbgapi_target::xfer_partial(), fbsd_nat_target::xfer_partial(), inf_ptrace_target::xfer_partial(), linux_nat_target::xfer_partial(), nbsd_nat_target::xfer_partial(), ravenscar_thread_target::xfer_partial(), record_btrace_target::xfer_partial(), remote_target::xfer_partial(), rs6000_nat_target::xfer_partial(), sol_thread_target::xfer_partial(), and rs6000_nat_target::xfer_shared_libraries().

◆ print_inferior_events

bool print_inferior_events
extern

◆ stop_stack_dummy

enum stop_stack_kind stop_stack_dummy
extern

◆ stopped_by_random_signal

int stopped_by_random_signal
extern