GDB (xrefs)
|
#include "defs.h"
#include "exec.h"
#include "inferior.h"
#include "target.h"
#include "command.h"
#include "completer.h"
#include "gdbcmd.h"
#include "gdbthread.h"
#include "ui-out.h"
#include "observable.h"
#include "gdbcore.h"
#include "symfile.h"
#include "gdbsupport/environ.h"
#include "cli/cli-utils.h"
#include "arch-utils.h"
#include "target-descriptions.h"
#include "target-connection.h"
#include "readline/tilde.h"
#include "progspace-and-thread.h"
#include "gdbsupport/buildargv.h"
#include "cli/cli-style.h"
#include "interps.h"
Go to the source code of this file.
Variables | |
intrusive_list< inferior > | inferior_list |
static int | highest_inferior_num |
bool | print_inferior_events = true |
static inferior_ref | current_inferior_ |
static const struct internalvar_funcs | inferior_funcs |
struct inferior * add_inferior | ( | int | pid | ) |
Definition at line 218 of file inferior.c.
References add_inferior_silent(), gdb_printf(), pid, print_inferior_events, and target_pid_to_str().
Referenced by add_inferior_with_spaces(), clone_inferior_command(), follow_fork_inferior(), and remote_target::remote_add_inferior().
|
static |
Definition at line 886 of file inferior.c.
References add_inferior_with_spaces(), inferior::args(), current_inferior(), exec_file_attach(), parse_and_eval_long(), switch_to_inferior_and_push_target(), symbol_file_add_main(), and SYMFILE_VERBOSE.
Referenced by initialize_inferiors().
struct inferior * add_inferior_silent | ( | int | pid | ) |
Definition at line 203 of file inferior.c.
References inferior::inferior(), inferior_appeared(), inferior_list, notify_inferior_added(), and pid.
Referenced by add_inferior(), and initialize_inferiors().
struct inferior * add_inferior_with_spaces | ( | void | ) |
Definition at line 832 of file inferior.c.
References add_inferior(), inferior::aspace, program_space::aspace, gdbarch_find_by_info(), maybe_new_address_space(), and inferior::pspace.
Referenced by add_inferior_command(), follow_exec(), mi_cmd_add_inferior(), and remote_target::remote_add_inferior().
|
static |
Definition at line 947 of file inferior.c.
References add_inferior(), inferior::args(), inferior::aspace, program_space::aspace, clone_program_space(), current_inferior(), inferior::cwd(), inferior::environment, find_inferior_id(), inferior::gdbarch, gdb::observers::inferior_cloned, maybe_new_address_space(), inferior::num, parse_and_eval_long(), inferior::pspace, switch_to_inferior_and_push_target(), inferior::tdesc_info, and inferior::tty().
Referenced by initialize_inferiors().
struct inferior * current_inferior | ( | void | ) |
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().
void delete_inferior | ( | struct inferior * | inf | ) |
Definition at line 273 of file inferior.c.
References inferior_list, and notify_inferior_removed().
Referenced by mi_cmd_remove_inferior(), prune_inferiors(), and remove_inferior_command().
void detach_inferior | ( | inferior * | inf | ) |
Definition at line 340 of file inferior.c.
References exit_inferior(), gdb_printf(), inf::pid, pid, print_inferior_events, and target_pid_to_str().
Referenced by gnu_nat_target::detach(), nto_procfs_target::detach(), windows_nat_target::detach(), procfs_target::detach(), inf_ptrace_target::detach_success(), and remote_target::remote_detach_1().
|
static |
Definition at line 630 of file inferior.c.
References any_thread_of_inferior(), inferior::args(), detach_command(), find_inferior_id(), number_or_range_parser::finished(), number_or_range_parser::get_number(), inferior::num, inf::pid, and switch_to_thread().
Referenced by initialize_inferiors().
void exit_inferior | ( | struct inferior * | inf | ) |
Definition at line 307 of file inferior.c.
References NO_STOP_QUIETLY, notify_inferior_disappeared(), inf::pid, registers_changed(), and reinit_frame_cache().
Referenced by core_target::clear_core(), bsd_kvm_target::close(), tfile_target::close(), darwin_attach_pid(), detach_inferior(), follow_exec(), and generic_mourn_inferior().
struct inferior * find_inferior_for_program_space | ( | struct program_space * | pspace | ) |
Definition at line 414 of file inferior.c.
References all_inferiors(), cur_inf(), current_inferior(), and inferior::pspace.
Referenced by program_space::empty(), and switch_to_program_space_and_thread().
struct inferior * find_inferior_id | ( | int | num | ) |
Definition at line 379 of file inferior.c.
References all_inferiors(), and inferior::num.
Referenced by clone_inferior_command(), detach_inferior_command(), exec_continue(), inferior_command(), kill_inferior_command(), mi_cmd_exec_interrupt(), mi_cmd_execute(), mi_cmd_list_thread_groups(), mi_cmd_remove_inferior(), mi_cmd_target_detach(), parse_thread_id(), remove_inferior_command(), and thread_apply_command().
struct inferior * find_inferior_pid | ( | process_stratum_target * | targ, |
int | pid ) |
Definition at line 389 of file inferior.c.
References all_inferiors(), inf::pid, and pid.
Referenced by all_matching_threads_iterator::all_matching_threads_iterator(), consume_one_event(), find_inferior_ptid(), gdbsim_target::get_inferior_data_by_ptid(), get_thread_data_helper_for_pid(), windows_nat_target::get_windows_debug_event(), handle_one(), remote_target::kill(), linux_nat_filter_event(), pdc_read_data(), pdc_write_data(), remote_target::pid_to_exec_file(), process_one_event(), remote_target::remote_notice_new_inferior(), linux_nat_target::thread_address_space(), inf_ptrace_target::wait(), obsd_nat_target::wait(), rs6000_nat_target::wait(), and wait_lwp().
struct inferior * find_inferior_ptid | ( | process_stratum_target * | targ, |
ptid_t | ptid ) |
Definition at line 406 of file inferior.c.
References find_inferior_pid().
Referenced by fbsd_nat_target::add_pending_event(), add_thread_silent(), remote_target::check_pending_events_prevent_wildcard_vcont(), gdbsim_target::close_one_inferior(), fbsd_add_threads(), fetch_inferior_event(), gdbsim_target::fetch_registers(), process_stratum_target::find_thread(), get_inferior_stop_soon(), get_thread_arch_regcache(), get_thread_data_helper_for_ptid(), get_thread_regcache(), handle_inferior_event(), nbsd_resume(), core_target::pid_to_str(), remote_target::remote_parse_stop_reply(), darwin_nat_target::resume(), gdbsim_target::resume(), resume_lwp(), fbsd_nat_target::resume_one_process(), resume_stopped_resumed_lwps(), save_stop_reason(), sol2_core_pid_to_str(), stop_wait_callback(), gdbsim_target::store_registers(), fbsd_nat_target::take_pending_event(), process_stratum_target::thread_address_space(), process_stratum_target::thread_architecture(), aarch64_linux_nat_target::thread_architecture(), thread_change_ptid(), fbsd_nat_target::wait(), and fbsd_nat_target::wait_1().
int have_inferiors | ( | void | ) |
Definition at line 429 of file inferior.c.
References all_non_exited_inferiors().
int have_live_inferiors | ( | void | ) |
Definition at line 462 of file inferior.c.
References number_of_live_inferiors().
Referenced by quit_confirm(), set_maint_target_async(), set_maint_target_non_stop(), and set_mi_async_command().
void inferior_appeared | ( | struct inferior * | inf, |
int | pid ) |
Definition at line 363 of file inferior.c.
References any_thread_p(), delete_exited_threads(), init_thread_list(), notify_inferior_appeared(), inf::pid, and pid.
Referenced by add_inferior_silent(), darwin_nat_target::attach(), gnu_nat_target::attach(), inf_ptrace_target::attach(), nto_procfs_target::attach(), core_target_open(), go32_nat_target::create_inferior(), nto_procfs_target::create_inferior(), gdbsim_target::create_inferior(), do_attach(), windows_nat_target::do_initial_windows_stuff(), postfork_hook(), remote_target::remote_add_inferior(), and tfile_target_open().
|
static |
Definition at line 735 of file inferior.c.
References any_thread_of_inferior(), inferior::args(), current_inferior(), find_inferior_id(), gdb_printf(), inferior_pid_to_str(), notify_user_selected_context_changed(), inferior::num, parse_and_eval_long(), inf::pid, switch_to_inferior_no_thread(), switch_to_thread(), USER_SELECTED_FRAME, USER_SELECTED_INFERIOR, and USER_SELECTED_THREAD.
Referenced by initialize_inferiors().
|
static |
Definition at line 1060 of file inferior.c.
References current_inferior(), and value_from_longest().
|
static |
Definition at line 497 of file inferior.c.
References pid, and target_pid_to_str().
Referenced by inferior_command(), print_inferior(), and print_selected_inferior().
|
static |
Definition at line 790 of file inferior.c.
References inferior::args(), current_uiout, and print_inferior().
Referenced by initialize_inferiors().
void initialize_inferiors | ( | void | ) |
Definition at line 1079 of file inferior.c.
References add_cmd(), add_com(), add_inferior_command(), add_inferior_silent(), add_info(), add_setshow_boolean_cmd(), program_space::aspace, class_run, clone_inferior_command(), cmdlist, create_internalvar_type_lazy(), current_inferior_, current_program_space, detach_inferior_command(), detachlist, filename_completer(), inferior_command(), inferior_funcs, info_inferiors_command(), kill_inferior_command(), killlist, no_class, print_inferior_events, remove_inferior_command(), set_cmd_completer(), set_current_inferior(), setprintlist, show_print_inferior_events(), and showprintlist.
Referenced by gdb_init().
|
static |
Definition at line 669 of file inferior.c.
References any_thread_of_inferior(), inferior::args(), find_inferior_id(), number_or_range_parser::finished(), number_or_range_parser::get_number(), inferior::num, inf::pid, switch_to_thread(), and target_kill().
Referenced by initialize_inferiors().
gdb::optional< scoped_restore_current_thread > maybe_switch_inferior | ( | inferior * | inf | ) |
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().
|
static |
Definition at line 196 of file inferior.c.
References gdb::observers::inferior_added, and interps_notify_inferior_added().
Referenced by add_inferior_silent().
|
static |
Definition at line 356 of file inferior.c.
References gdb::observers::inferior_appeared, and interps_notify_inferior_appeared().
Referenced by inferior_appeared().
|
static |
Definition at line 298 of file inferior.c.
References gdb::observers::inferior_exit, and interps_notify_inferior_disappeared().
Referenced by exit_inferior().
|
static |
Definition at line 266 of file inferior.c.
References gdb::observers::inferior_removed, and interps_notify_inferior_removed().
Referenced by delete_inferior().
int number_of_inferiors | ( | void | ) |
Definition at line 487 of file inferior.c.
References all_inferiors().
Referenced by print_one_breakpoint_location().
int number_of_live_inferiors | ( | process_stratum_target * | proc_target | ) |
Definition at line 442 of file inferior.c.
References all_non_exited_inferiors().
Referenced by have_live_inferiors(), remote_target::kill(), remote_target::mourn_inferior(), and remote_target::remote_detach_1().
|
static |
Definition at line 544 of file inferior.c.
References all_inferiors(), current_inferior(), ui_out::field_signed(), ui_out::field_skip(), ui_out::field_string(), file_name_style, inferior_pid_to_str(), ui_out::message(), number_is_in_list(), inf::pid, cli_style_option::style(), switch_to_inferior_no_thread(), ui_out::table_body(), ui_out::table_header(), ui_out::text(), ui_left, and uiout_field_connection().
Referenced by info_inferiors_command().
void print_selected_inferior | ( | struct ui_out * | uiout | ) |
Definition at line 508 of file inferior.c.
References current_inferior(), inferior_pid_to_str(), ui_out::message(), and inf::pid.
Referenced by cli_interp_base::on_user_selected_context_changed(), and mi_interp::on_user_selected_context_changed().
void prune_inferiors | ( | void | ) |
Definition at line 471 of file inferior.c.
References all_inferiors_safe(), delete_inferior(), and inf::pid.
Referenced by fetch_inferior_event().
|
static |
Definition at line 798 of file inferior.c.
References inferior::args(), delete_inferior(), find_inferior_id(), number_or_range_parser::finished(), number_or_range_parser::get_number(), inferior::num, and inf::pid.
Referenced by initialize_inferiors().
void set_current_inferior | ( | struct inferior * | inf | ) |
Definition at line 61 of file inferior.c.
References current_inferior_.
Referenced by get_thread_arch_regcache(), get_thread_regcache(), initialize_inferiors(), mi_cmd_execute(), mi_cmd_remove_inferior(), target_terminal::restore_inferior(), scoped_restore_current_inferior_for_memory::scoped_restore_current_inferior_for_memory(), switch_to_inferior_no_thread(), switch_to_thread_no_regs(), target_pass_ctrlc(), target_terminal_is_ours_kind(), and scoped_restore_current_inferior::~scoped_restore_current_inferior().
|
static |
Definition at line 1051 of file inferior.c.
References gdb_printf().
Referenced by initialize_inferiors().
void switch_to_inferior_and_push_target | ( | inferior * | new_inf, |
bool | no_connection, | ||
inferior * | org_inf ) |
Definition at line 861 of file inferior.c.
References process_stratum_target::connection_number, gdb_printf(), make_target_connection_string(), inferior::num, inferior::process_target(), inferior::push_target(), and switch_to_inferior_no_thread().
Referenced by add_inferior_command(), clone_inferior_command(), and mi_cmd_add_inferior().
void switch_to_inferior_no_thread | ( | inferior * | inf | ) |
Definition at line 712 of file inferior.c.
References set_current_inferior(), set_current_program_space(), and switch_to_no_thread().
Referenced by program_space::add_target_sections(), amd_dbgapi_insert_breakpoint_callback(), extended_remote_target::attach(), check_multi_target_resumption(), dbgapi_notifier_handler(), do_target_wait_1(), exists_non_stop_target(), fetch_inferior_event(), inf_child_target::follow_exec(), handle_inferior_event(), handle_no_resumed(), inferior_command(), interrupt_target_1(), maybe_call_commit_resumed_all_targets(), maybe_set_commit_resumed_all_targets(), maybe_switch_inferior(), inferior::pop_all_targets_above(), inferior::pop_all_targets_at_and_above(), print_inferior(), print_program_space(), print_thread_info_1(), prune_threads(), remote_target::remote_add_inferior(), remote_unpush_target(), program_space::remove_target_sections(), scoped_restore_current_thread::restore(), run_one_inferior(), switch_to_inferior_and_push_target(), switch_to_program_space_and_thread(), switch_to_target_no_thread(), switch_to_thread_if_alive(), thread_find_command(), thread_name(), and wait_one().
|
static |
Definition at line 524 of file inferior.c.
References process_stratum_target::connection_number, and make_target_connection_string().
Referenced by print_inferior().
|
static |
Definition at line 52 of file inferior.c.
Referenced by current_inferior(), initialize_inferiors(), and set_current_inferior().
|
static |
Definition at line 44 of file inferior.c.
|
static |
Definition at line 1070 of file inferior.c.
Referenced by initialize_inferiors().
intrusive_list<inferior> inferior_list |
Definition at line 43 of file inferior.c.
Referenced by add_inferior_silent(), all_threads_iterator::advance(), all_matching_threads_iterator::advance(), all_inferiors(), all_inferiors_safe(), all_matching_threads_iterator::all_matching_threads_iterator(), all_non_exited_inferiors(), all_threads_iterator::all_threads_iterator(), delete_inferior(), do_target_wait(), and show_inferior_qualified_tids().
bool print_inferior_events = true |
Definition at line 47 of file inferior.c.
Referenced by add_inferior(), detach_inferior(), follow_fork_inferior(), handle_vfork_child_exec_or_exit(), initialize_inferiors(), kill_command(), and remote_target::remote_detach_1().