|
GDB (xrefs)
|
#include "breakpoint.h"#include "target.h"#include "frame.h"#include "environ.h"#include "progspace.h"#include "registry.h"#include "symfile-add-flags.h"#include "common/refcounted-object.h"#include "common-inferior.h"Go to the source code of this file.
Classes | |
| struct | private_inferior |
| struct | inferior_control_state |
| class | inferior |
| class | scoped_restore_current_inferior |
Macros | |
| #define | ON_STACK 1 |
| #define | AT_ENTRY_POINT 4 |
| #define | ALL_INFERIORS(I) for ((I) = inferior_list; (I); (I) = (I)->next) |
| #define | ALL_NON_EXITED_INFERIORS(I) |
Enumerations | |
| enum | step_over_calls_kind { STEP_OVER_NONE, STEP_OVER_ALL, STEP_OVER_UNDEBUGGABLE } |
| enum | stop_kind { NO_STOP_QUIETLY = 0, STOP_QUIETLY, STOP_QUIETLY_REMOTE, STOP_QUIETLY_NO_SIGSTOP } |
Variables | |
| ptid_t | inferior_ptid |
| int | startup_with_shell |
| CORE_ADDR | stop_pc |
| enum stop_stack_kind | stop_stack_dummy |
| int | stopped_by_random_signal |
| struct inferior * | inferior_list |
Definition at line 548 of file inferior.h.
Referenced by check_zombie_leaders(), handle_no_resumed(), print_one_breakpoint_location(), process_initial_stop_replies(), and thread_db_update_thread_list().
| #define ALL_NON_EXITED_INFERIORS | ( | I | ) |
Definition at line 553 of file inferior.h.
Referenced by remote_commit_resume().
| #define AT_ENTRY_POINT 4 |
Definition at line 264 of file inferior.h.
Referenced by call_function_by_hand_dummy(), gdbarch_alloc(), score_gdbarch_init(), and sparc64_init_abi().
| #define ON_STACK 1 |
Definition at line 263 of file inferior.h.
Referenced by call_function_by_hand_dummy(), i386_gdbarch_init(), microblaze_gdbarch_init(), mips_gdbarch_init(), or1k_gdbarch_init(), sparc32_gdbarch_init(), and spu_gdbarch_init().
| enum step_over_calls_kind |
| Enumerator | |
|---|---|
| STEP_OVER_NONE | |
| STEP_OVER_ALL | |
| STEP_OVER_UNDEBUGGABLE | |
Definition at line 221 of file inferior.h.
| enum stop_kind |
| Enumerator | |
|---|---|
| NO_STOP_QUIETLY | |
| STOP_QUIETLY | |
| STOP_QUIETLY_REMOTE | |
| STOP_QUIETLY_NO_SIGSTOP | |
Definition at line 253 of file inferior.h.
| struct inferior* add_inferior | ( | int | pid | ) |
Definition at line 121 of file inferior.c.
References _, add_inferior_silent(), arm-linux::inf, pid, print_inferior_events, and printf_unfiltered().
Referenced by add_inferior_with_spaces(), clone_inferior_command(), follow_fork_inferior(), initialize_inferiors(), and remote_add_inferior().
| struct inferior* add_inferior_silent | ( | int | pid | ) |
Definition at line 97 of file inferior.c.
References arm-linux::inf, inferior::inferior(), inferior_appeared(), inferior_list, inferior::next, observer_notify_inferior_added(), and pid.
Referenced by add_inferior().
| struct inferior* add_inferior_with_spaces | ( | void | ) |
Definition at line 763 of file inferior.c.
References add_inferior(), add_program_space(), program_space::aspace, gdb_assert, gdbarch_find_by_info(), gdbarch_info_init(), arm-linux::inf, and maybe_new_address_space().
Referenced by add_inferior_command(), follow_exec(), and mi_cmd_add_inferior().
| void address_to_signed_pointer | ( | struct gdbarch * | gdbarch, |
| struct type * | type, | ||
| gdb_byte * | buf, | ||
| CORE_ADDR | addr | ||
| ) |
Definition at line 340 of file findvar.c.
References gdbarch_byte_order(), store_signed_integer(), and TYPE_LENGTH.
Referenced by mips_gdbarch_init().
| void attach_command | ( | const char * | , |
| int | |||
| ) |
Definition at line 2791 of file infcmd.c.
References _, add_inferior_continuation(), inferior::args, attach_command_continuation_args::args, attach_command_continuation(), attach_command_continuation_free_args(), attach_post_wait(), ATTACH_POST_WAIT_RESUME, ATTACH_POST_WAIT_STOP, clear_proceed_status(), inferior::control, current_inferior(), dont_repeat(), error(), find_attach_target(), attach_command_continuation_args::from_tty, gdbarch_has_global_solist(), target_terminal::inferior(), inferior_ptid, target_terminal::init(), init_wait_for_inferior(), mark_infrun_async_event_handler(), attach_command_continuation_args::mode, inferior::needs_setup, non_stop, pid_to_ptid(), prepare_execution_command(), ptid_get_pid(), query(), STOP_QUIETLY_NO_SIGSTOP, inferior_control_state::stop_soon, strip_bg_char(), target_attach_no_wait, target_gdbarch(), target_has_execution, target_is_async_p, target_is_non_stop_p(), target_kill(), target_pre_inferior(), target_stop(), target_ops::to_attach, target_ops::to_supports_non_stop, and XNEW.
Referenced by _initialize_infcmd(), and captured_main_1().
| void child_terminal_inferior | ( | struct target_ops * | self | ) |
Definition at line 246 of file inflow.c.
References current_inferior(), gdb_has_a_terminal(), get_inflow_inferior_data(), arm-linux::inf, job_control, OOPSY, terminal_info::process_group, terminal_info::run_terminal, serial_set_tty_state(), sigint_ours, sigquit_ours, stdin_serial, tcsetpgrp(), terminal_is_ours, terminal_info::tflags, and terminal_info::ttystate.
Referenced by inf_child_target(), and linux_nat_terminal_inferior().
| void child_terminal_info | ( | struct target_ops * | self, |
| const char * | , | ||
| int | |||
| ) |
Definition at line 494 of file inflow.c.
References _, current_inferior(), flags, gdb_has_a_terminal(), gdb_stdout, get_inflow_inferior_data(), arm-linux::inf, inferior_ptid, null_ptid, O_ACCMODE, O_BINARY, printf_filtered(), terminal_info::process_group, ptid_equal(), serial_print_tty_state(), stdin_serial, terminal_info::tflags, and terminal_info::ttystate.
Referenced by inf_child_target().
| void child_terminal_init | ( | struct target_ops * | self | ) |
Definition at line 197 of file inflow.c.
References current_inferior(), gdb_has_a_terminal(), get_inflow_inferior_data(), initial_gdb_ttystate, inf::pid, terminal_info::process_group, serial_copy_tty_state(), stdin_serial, terminal_is_ours, terminal_info::ttystate, and xfree().
Referenced by inf_child_target().
| void child_terminal_init_with_pgrp | ( | int | pgrp | ) |
| void child_terminal_ours | ( | struct target_ops * | self | ) |
Definition at line 329 of file inflow.c.
References child_terminal_ours_1().
Referenced by inf_child_target(), and linux_nat_terminal_ours().
| void child_terminal_ours_for_output | ( | struct target_ops * | self | ) |
Definition at line 315 of file inflow.c.
References child_terminal_ours_1().
Referenced by inf_child_target().
| void clear_sigint_trap | ( | void | ) |
Definition at line 718 of file inflow.c.
References osig, and osig_set.
Referenced by inf_ptrace_wait(), linux_nat_terminal_ours(), rs6000_wait(), and spu_child_wait().
| char* construct_inferior_arguments | ( | int | , |
| char ** | |||
| ) |
Definition at line 278 of file infcmd.c.
References _, inferior::argc, gdb::argv, error(), startup_with_shell, and xmalloc().
Referenced by get_inferior_args().
| void continue_1 | ( | int | all_threads | ) |
Definition at line 775 of file infcmd.c.
References clear_proceed_status(), current_ui, ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), ERROR_NO_INFERIOR, target_terminal::inferior(), iterate_over_threads(), non_stop, proceed(), proceed_thread_callback(), PROMPT_BLOCKED, and ui::prompt_state.
Referenced by continue_command(), and exec_continue().
| inferior* current_inferior | ( | ) |
Definition at line 58 of file inferior.c.
References current_inferior_.
Referenced by 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_continuation(), add_to_thread_list(), alpha_heuristic_proc_start(), attach_command(), attach_post_wait(), BP_MANIPULATION(), bpfinishpy_detect_out_scope_cb(), catch_syscall_enabled(), child_terminal_inferior(), child_terminal_info(), child_terminal_init(), child_terminal_ours_1(), clear_proceed_status(), clone_inferior_command(), cmd_record_stop(), core_open(), ctrl_c_handler(), darwin_attach(), darwin_detach(), darwin_get_ada_task_ptid(), darwin_interrupt(), darwin_kill_inferior(), darwin_mourn_inferior(), darwin_ptrace_him(), darwin_solib_get_all_image_info_addr_at_init(), darwin_xfer_partial(), detach_breakpoints(), do_all_inferior_continuations(), do_attach(), do_initial_windows_stuff(), elf_gnu_ifunc_resolver_stop(), enable_break(), environment_info(), exec_file_locate_attach(), extended_remote_environment_support(), find_inferior_for_program_space(), follow_exec(), follow_fork_inferior(), frscm_get_frame_smob_arg_unsafe(), gdb_bfd_open(), gdbpy_selected_inferior(), gdbscm_newest_frame(), gdbscm_selected_frame(), gdbsim_close(), gdbsim_create_inferior(), gdbsim_files_info(), gdbsim_has_all_memory(), gdbsim_has_memory(), gdbsim_load(), gdbsim_mourn_inferior(), gdbsim_open(), gdbsim_wait(), gdbsim_xfer_memory(), get_auxv_inferior_data(), get_inferior_args(), get_inferior_cwd(), get_inferior_io_terminal(), get_linux_inferior_data(), get_other_inferior(), get_task_from_args(), gnu_attach(), go32_create_inferior(), handle_inferior_event_1(), handle_solib_event(), handle_vfork_child_exec_or_exit(), heuristic_proc_start(), inf_has_multiple_thread_cb(), inf_ptrace_attach(), inf_ptrace_files_info(), inferior_id_make_value(), inferior_process_group(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_region_command(), info_tasks_command(), insert_catch_syscall(), invalidate_auxv_cache(), iterate_over_live_ada_tasks(), jit_reader_unload_command(), linux_find_memory_regions_full(), linux_handle_extended_wait(), linux_info_proc(), linux_nat_filesystem_is_local(), linux_nat_kill(), linux_vsyscall_range_raw(), memory_xfer_auxv(), mi_cmd_ada_task_info(), mi_cmd_env_path(), mi_cmd_remove_inferior(), mi_output_solib_attribs(), mi_solib_unloaded(), new_tty_postfork(), notice_new_inferior(), nto_inferior_data(), parse_thread_id(), path_command(), path_info(), postfork_hook(), prepare_for_detach(), print_exited_reason(), print_inferior(), print_selected_inferior(), print_thread_info_1(), procfs_attach(), procfs_create_inferior(), procfs_files_info(), procfs_stopped_by_watchpoint(), read_known_tasks(), read_known_tasks_array(), read_known_tasks_list(), record_btrace_push_target(), record_full_open(), remote_add_inferior(), remove_catch_syscall(), restore_infcall_control_state(), resume_1(), run_command_1(), save_infcall_control_state(), save_stop_context(), scoped_restore_current_thread::scoped_restore_current_thread(), set_enable_mach_exceptions(), set_environment_command(), set_inferior_args(), set_inferior_args_vector(), set_inferior_cwd(), set_inferior_io_terminal(), set_sigint_trap(), set_target_gdbarch(), setup_inferior(), sim_command_completer(), simulator_command(), solib_aix_current_sos(), solib_aix_normal_stop_observer(), solib_aix_solib_create_inferior_hook(), solib_find_1(), solib_read_symbols(), spu_skip_standalone_loader(), start_remote(), stop_context_changed(), symbol_file_add_main_1(), target_gdbarch(), target_pre_inferior(), task_command(), tfile_open(), thread_apply_command(), unset_environment_command(), update_solib_list(), valid_task_id(), windows_files_info(), and write_memory_with_notification().
| DECLARE_REGISTRY | ( | inferior | ) |
| void default_print_float_info | ( | struct gdbarch * | gdbarch, |
| struct ui_file * | file, | ||
| struct frame_info * | frame, | ||
| const char * | args | ||
| ) |
Definition at line 3077 of file infcmd.c.
References float_reggroup, fprintf_filtered(), gdbarch_num_pseudo_regs(), gdbarch_num_regs(), gdbarch_print_registers_info(), gdbarch_register_reggroup_p(), and regnum.
Referenced by gdbarch_alloc(), and mips_print_float_info().
| void default_print_registers_info | ( | struct gdbarch * | gdbarch, |
| struct ui_file * | file, | ||
| struct frame_info * | frame, | ||
| int | regnum, | ||
| int | all | ||
| ) |
Definition at line 2365 of file infcmd.c.
References all_reggroup, default_print_one_register_info(), gdbarch_num_pseudo_regs(), gdbarch_num_regs(), gdbarch_register_name(), gdbarch_register_reggroup_p(), general_reggroup, regnum, and value_of_register().
Referenced by gdbarch_alloc(), and mt_registers_info().
| void delete_inferior | ( | struct inferior * | todel | ) |
Definition at line 155 of file inferior.c.
References delete_program_space(), delete_thread_of_inferior(), arm-linux::inf, inferior_list, iterate_over_threads(), observer_notify_inferior_removed(), delete_thread_of_inferior_arg::pid, inf::pid, program_space_empty_p(), and delete_thread_of_inferior_arg::silent.
Referenced by mi_cmd_remove_inferior(), prune_inferiors(), and remove_inferior_command().
| void delete_longjmp_breakpoint_cleanup | ( | void * | arg | ) |
Definition at line 955 of file infcmd.c.
References delete_longjmp_breakpoint().
Referenced by until_break_command(), and until_next_command().
| void detach_command | ( | const char * | , |
| int | |||
| ) |
Definition at line 2968 of file infcmd.c.
References _, inferior::args, breakpoint_init_inferior(), deprecated_detach_hook, disconnect_tracing(), dont_repeat(), error(), gdbarch_has_global_solist(), have_inferiors(), inf_exited, inferior_ptid, init_thread_list(), no_shared_libraries(), null_ptid, ptid_equal(), query_if_trace_running(), target_detach(), and target_gdbarch().
Referenced by _initialize_infcmd(), detach_inferior_command(), and mi_cmd_target_detach().
| void detach_inferior | ( | int | pid | ) |
Definition at line 257 of file inferior.c.
References _, exit_inferior_1(), find_inferior_pid(), pid, print_inferior_events, and printf_unfiltered().
Referenced by gnu_detach(), inf_ptrace_detach_success(), procfs_detach(), remote_detach_1(), remote_follow_fork(), and windows_detach().
| void discard_all_inferiors | ( | void | ) |
Definition at line 278 of file inferior.c.
References exit_inferior_silent(), arm-linux::inf, inferior_list, and inf::pid.
Referenced by remote_close().
| void discard_infcall_control_state | ( | struct infcall_control_state * | ) |
Definition at line 9058 of file infrun.c.
References bpstat_clear(), disp_del_at_next_stop, breakpoint::disposition, thread_control_state::exception_resume_breakpoint, thread_control_state::step_resume_breakpoint, thread_control_state::stop_bpstat, infcall_control_state::thread_control, and xfree().
Referenced by call_function_by_hand_dummy().
| void discard_infcall_suspend_state | ( | struct infcall_suspend_state * | ) |
Definition at line 8918 of file infrun.c.
References infcall_suspend_state::registers, infcall_suspend_state::siginfo_data, and xfree().
Referenced by remove_dummy_frame(), and restore_infcall_suspend_state().
| void exit_inferior | ( | int | pid | ) |
Definition at line 230 of file inferior.c.
References _, exit_inferior_1(), find_inferior_pid(), pid, print_inferior_events, and printf_unfiltered().
Referenced by generic_mourn_inferior().
| void exit_inferior_num_silent | ( | int | num | ) |
Definition at line 249 of file inferior.c.
References exit_inferior_1(), find_inferior_id(), and inferior::num.
Referenced by follow_exec().
| void exit_inferior_silent | ( | int | pid | ) |
Definition at line 241 of file inferior.c.
References exit_inferior_1(), find_inferior_pid(), and pid.
Referenced by core_close(), discard_all_inferiors(), and tfile_close().
| struct inferior* find_inferior_for_program_space | ( | struct program_space * | pspace | ) |
Definition at line 329 of file inferior.c.
References current_inferior(), arm-linux::inf, inferior_list, and inferior::pspace.
Referenced by program_space_empty_p(), and switch_to_program_space_and_thread().
| struct inferior* find_inferior_id | ( | int | num | ) |
Definition at line 290 of file inferior.c.
References arm-linux::inf, inferior_list, and inferior::num.
Referenced by clone_inferior_command(), exec_continue(), exit_inferior_num_silent(), gdb_inferior_id_to_pid(), 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 | ( | int | pid | ) |
Definition at line 302 of file inferior.c.
References gdb_assert, arm-linux::inf, inferior_list, inf::pid, and pid.
Referenced by detach_inferior(), exit_inferior(), exit_inferior_silent(), find_inferior_object(), find_inferior_ptid(), get_sim_inferior_data_by_ptid(), get_windows_debug_event(), linux_nat_filter_event(), linux_nat_thread_address_space(), procfs_wait(), remote_pid_to_exec_file(), remove_breakpoints_pid(), and wait_lwp().
Definition at line 321 of file inferior.c.
References find_inferior_pid(), and ptid_get_pid().
Referenced by ada_get_task_number(), add_thread_silent(), check_pending_event_prevents_wildcard_vcont_callback(), core_pid_to_str(), darwin_resume(), default_thread_address_space(), default_thread_architecture(), fetch_inferior_event(), gdbsim_close_inferior(), gdbsim_fetch_register(), gdbsim_interrupt(), gdbsim_resume(), gdbsim_store_register(), get_inferior_stop_soon(), handle_inferior_event_1(), handle_signal_stop(), memory_xfer_partial_1(), mi_new_thread(), parse_spufs_run(), ps_pglobal_lookup(), record_btrace_replay_at_breakpoint(), remote_parse_stop_reply(), resume_lwp(), sol2_core_pid_to_str(), stop_all_threads(), stop_wait_callback(), and thread_change_ptid().
| int gdb_inferior_id_to_pid | ( | int | ) |
Definition at line 386 of file inferior.c.
References find_inferior_id(), inferior::num, and inferior::pid.
Referenced by detach_inferior_command(), and kill_inferior_command().
| ptid_t gdb_startup_inferior | ( | pid_t | pid, |
| int | num_traps | ||
| ) |
Definition at line 134 of file fork-child.c.
References pid, set_executing(), and startup_inferior().
Referenced by darwin_ptrace_him(), gnu_create_inferior(), inf_ptrace_create_inferior(), and procfs_init_inferior().
| void generic_mourn_inferior | ( | void | ) |
Definition at line 3198 of file target.c.
References breakpoint_init_inferior(), deprecated_detach_hook, exit_inferior(), inf_exited, inferior_ptid, mark_breakpoints_out(), null_ptid, pid, ptid_equal(), ptid_get_pid(), registers_changed(), reinit_frame_cache(), and reopen_exec_file().
Referenced by gdbsim_close_inferior(), gdbsim_mourn_inferior(), go32_mourn_inferior(), inf_child_mourn_inferior(), procfs_mourn_inferior(), remote_disconnect(), and remote_mourn().
| struct regcache* get_infcall_suspend_state_regcache | ( | struct infcall_suspend_state * | ) |
Definition at line 8926 of file infrun.c.
References infcall_suspend_state::registers.
Referenced by dummy_frame_sniffer().
| char* get_inferior_args | ( | void | ) |
Definition at line 161 of file infcmd.c.
References inferior::args, gdb::argv, construct_inferior_arguments(), current_inferior(), set_inferior_args(), and xfree().
Referenced by fbsd_make_corefile_notes(), linux_fill_prpsinfo(), procfs_make_note_section(), run_command_1(), and show_args_command().
| const char* get_inferior_io_terminal | ( | void | ) |
Definition at line 131 of file infcmd.c.
References current_inferior(), and inferior::terminal.
Referenced by mi_cmd_inferior_tty_show(), prefork_hook(), procfs_create_inferior(), show_inferior_tty_command(), and windows_create_inferior().
Definition at line 1625 of file infcmd.c.
References _, allocate_value(), regcache::arch(), check_typedef(), gdb_assert, gdbarch_return_value(), get_current_regcache(), internal_error(), regcache::readonly, RETURN_VALUE_ABI_PRESERVES_ADDRESS, RETURN_VALUE_ABI_RETURNS_ADDRESS, RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, TYPE_CODE, TYPE_CODE_VOID, value_contents_raw(), and value_type().
Referenced by bpfinishpy_pre_stop_hook(), and finish_command_fsm_should_stop().
| int have_inferiors | ( | void | ) |
Definition at line 408 of file inferior.c.
References arm-linux::inf, inferior_list, and inf::pid.
Referenced by detach_command(), extended_remote_create_inferior(), gdbsim_create_inferior(), inf_child_maybe_unpush_target(), kill_command(), postfork_hook(), remote_mourn(), remote_open_1(), and target_preopen().
| int have_live_inferiors | ( | void | ) |
Definition at line 451 of file inferior.c.
References number_of_live_inferiors().
Referenced by maint_set_target_async_command(), maint_set_target_non_stop_command(), quit_confirm(), set_mi_async_command(), and target_preopen().
| int in_inferior_list | ( | int | pid | ) |
Definition at line 396 of file inferior.c.
References arm-linux::inf, inferior_list, inf::pid, and pid.
Referenced by remote_notice_new_inferior().
| void inferior_appeared | ( | struct inferior * | inf, |
| int | pid | ||
| ) |
Definition at line 268 of file inferior.c.
References observer_notify_inferior_appeared(), inf::pid, and pid.
Referenced by add_inferior_silent(), add_to_thread_list(), core_open(), darwin_attach(), do_attach(), do_initial_windows_stuff(), gdbsim_create_inferior(), gnu_attach(), go32_create_inferior(), inf_ptrace_attach(), postfork_hook(), procfs_attach(), procfs_create_inferior(), remote_add_inferior(), and tfile_open().
| void info_terminal_command | ( | char * | , |
| int | |||
| ) |
| void interrupt_target_1 | ( | int | all_threads | ) |
Definition at line 3024 of file infcmd.c.
References inferior_ptid, minus_one_ptid, non_stop, set_stop_requested(), target_interrupt(), and target_stop().
Referenced by interrupt_command(), and mi_cmd_exec_interrupt().
Definition at line 346 of file inferior.c.
References arm-linux::inf, and inferior_list.
Referenced by darwin_find_inferior_by_pid(), darwin_find_inferior_by_task(), darwin_resume(), darwin_wait(), gdbpy_inferiors(), gdbsim_close(), gdbsim_interrupt(), gdbsim_resume(), get_sim_inferior_data(), mi_interp::init(), mi_cmd_exec_run(), mi_cmd_list_thread_groups(), mi_cmd_remove_inferior(), mi_on_resume_1(), quit_confirm(), quit_force(), and target_preopen().
| struct cleanup* make_cleanup_restore_infcall_control_state | ( | struct infcall_control_state * | ) |
Definition at line 9052 of file infrun.c.
References do_restore_infcall_control_state_cleanup(), and make_cleanup().
Referenced by call_function_by_hand_dummy().
| struct cleanup* make_cleanup_restore_infcall_suspend_state | ( | struct infcall_suspend_state * | ) |
Definition at line 8912 of file infrun.c.
References do_restore_infcall_suspend_state_cleanup(), and make_cleanup().
Referenced by call_function_by_hand_dummy().
| void notice_new_inferior | ( | ptid_t | , |
| int | , | ||
| int | |||
| ) |
Definition at line 2913 of file infcmd.c.
References add_inferior_continuation(), attach_command_continuation_args::args, attach_command_continuation(), attach_command_continuation_free_args(), attach_post_wait(), ATTACH_POST_WAIT_NOTHING, ATTACH_POST_WAIT_RESUME, inferior::control, current_inferior(), gdb::optional< T >::emplace(), find_thread_ptid(), attach_command_continuation_args::from_tty, inferior_ptid, is_executing(), attach_command_continuation_args::mode, null_ptid, STOP_QUIETLY_REMOTE, inferior_control_state::stop_soon, switch_to_thread_no_regs(), target_stop(), and XNEW.
Referenced by process_initial_stop_replies(), and remote_notice_new_inferior().
| int number_of_inferiors | ( | void | ) |
Definition at line 486 of file inferior.c.
References arm-linux::inf, and inferior_list.
Referenced by print_one_breakpoint_location().
| int number_of_live_inferiors | ( | void | ) |
Definition at line 424 of file inferior.c.
References ALL_NON_EXITED_THREADS, arm-linux::inf, inferior_list, inf::pid, thread_info::ptid, ptid_get_pid(), and target_has_execution_1().
Referenced by have_live_inferiors(), remote_detach_1(), remote_kill(), and remote_mourn().
| int pid_to_gdb_inferior_id | ( | int | pid | ) |
Definition at line 374 of file inferior.c.
References arm-linux::inf, inferior_list, inf::pid, and pid.
| void post_create_inferior | ( | struct target_ops * | , |
| int | |||
| ) |
Definition at line 435 of file infcmd.c.
References _, auto_solib_add, breakpoint_re_set(), CATCH, current_program_space, END_CATCH, exec_bfd, gdbarch_has_global_solist(), get_current_regcache(), info_verbose, NOT_AVAILABLE_ERROR, observer_notify_inferior_created(), target_terminal::ours_for_output(), regcache_read_pc(), RETURN_MASK_ERROR, solib_add(), program_space::solib_add_generation, solib_create_inferior_hook(), stop_pc, target_find_description(), target_gdbarch(), throw_exception(), TRY, and warning().
Referenced by core_open(), run_command_1(), setup_inferior(), start_remote(), and tfile_open().
| void prepare_execution_command | ( | struct target_ops * | target, |
| int | background | ||
| ) |
Definition at line 529 of file infcmd.c.
References _, all_uis_on_sync_execution_starting(), error(), and target_ops::to_can_async_p.
Referenced by advance_command(), attach_command(), continue_command(), exec_continue(), finish_command(), jump_command(), run_command_1(), signal_command(), step_1(), and until_command().
| void print_selected_inferior | ( | struct ui_out * | uiout | ) |
Definition at line 512 of file inferior.c.
References _, current_inferior(), inferior_pid_to_str(), ui_out::message(), and inf::pid.
Referenced by cli_on_user_selected_context_changed(), mi_user_selected_context_changed(), and tui_on_user_selected_context_changed().
| void prune_inferiors | ( | void | ) |
Definition at line 460 of file inferior.c.
References inferior::deletable(), delete_inferior(), inferior_list, inferior::next, inferior::pid, and inferior::removable.
Referenced by normal_stop().
| void registers_info | ( | const char * | , |
| int | |||
| ) |
Definition at line 2410 of file infcmd.c.
References _, default_print_one_register_info(), error(), gdb_stdout, gdbarch_num_pseudo_regs(), gdbarch_num_regs(), gdbarch_print_registers_info(), gdbarch_register_reggroup_p(), get_frame_arch(), get_selected_frame(), reggroup_name(), reggroup_next(), regnum, skip_spaces(), target_has_registers, user_reg_map_name_to_regnum(), user_reg_map_regnum_to_name(), and value_of_user_reg().
Referenced by info_all_registers_command(), info_registers_command(), and trace_dump_actions().
| void reopen_exec_file | ( | void | ) |
Definition at line 127 of file corefile.c.
References exec_bfd, exec_bfd_mtime, exec_file_attach(), and string.
Referenced by generic_mourn_inferior(), load_command(), remote_open_1(), run_command_1(), and setup_inferior().
| void restore_infcall_control_state | ( | struct infcall_control_state * | ) |
Definition at line 8999 of file infrun.c.
References bpstat_clear(), CATCH, thread_info::control, current_inferior(), disp_del_at_next_stop, breakpoint::disposition, END_CATCH, exception_fprintf(), thread_control_state::exception_resume_breakpoint, gdb_stderr, get_current_frame(), infcall_control_state::inferior_control, inferior_thread(), restore_selected_frame(), RETURN_MASK_ERROR, select_frame(), infcall_control_state::selected_frame_id, thread_control_state::step_resume_breakpoint, thread_control_state::stop_bpstat, stop_stack_dummy, infcall_control_state::stop_stack_dummy, stopped_by_random_signal, infcall_control_state::stopped_by_random_signal, target_has_stack, infcall_control_state::thread_control, TRY, and xfree().
Referenced by call_function_by_hand_dummy(), and do_restore_infcall_control_state_cleanup().
| void restore_infcall_suspend_state | ( | struct infcall_suspend_state * | ) |
Definition at line 8876 of file infrun.c.
References regcache::arch(), current_target, discard_infcall_suspend_state(), gdbarch_get_siginfo_type(), get_current_regcache(), inferior_thread(), regcache_cpy(), infcall_suspend_state::registers, infcall_suspend_state::siginfo_data, infcall_suspend_state::siginfo_gdbarch, stop_pc, infcall_suspend_state::stop_pc, thread_info::suspend, target_has_execution, TARGET_OBJECT_SIGNAL_INFO, target_write(), infcall_suspend_state::thread_suspend, and TYPE_LENGTH.
Referenced by do_restore_infcall_suspend_state_cleanup(), and pop_dummy_frame().
| struct infcall_control_state* save_infcall_control_state | ( | void | ) |
Definition at line 8952 of file infrun.c.
References bpstat_copy(), thread_info::control, current_inferior(), thread_control_state::exception_resume_breakpoint, get_frame_id(), get_selected_frame(), infcall_control_state::inferior_control, inferior_thread(), infcall_control_state::selected_frame_id, thread_control_state::step_resume_breakpoint, thread_control_state::stop_bpstat, stop_stack_dummy, infcall_control_state::stop_stack_dummy, stopped_by_random_signal, infcall_control_state::stopped_by_random_signal, infcall_control_state::thread_control, and XNEW.
Referenced by call_function_by_hand_dummy().
| struct infcall_suspend_state* save_infcall_suspend_state | ( | void | ) |
Definition at line 8824 of file infrun.c.
References regcache::arch(), current_target, discard_cleanups(), do_cleanups(), gdbarch_get_siginfo_type(), gdbarch_get_siginfo_type_p(), get_current_regcache(), inferior_thread(), make_cleanup(), regcache_dup(), infcall_suspend_state::registers, infcall_suspend_state::siginfo_data, infcall_suspend_state::siginfo_gdbarch, stop_pc, infcall_suspend_state::stop_pc, thread_suspend_state::stop_signal, thread_info::suspend, TARGET_OBJECT_SIGNAL_INFO, target_read(), infcall_suspend_state::thread_suspend, TYPE_LENGTH, XCNEW, xfree(), and xmalloc().
Referenced by call_function_by_hand_dummy().
| void set_current_inferior | ( | inferior * | ) |
Definition at line 64 of file inferior.c.
References current_inferior_, refcounted_object::decref(), gdb_assert, and arm-linux::inf.
Referenced by add_inferior_command(), clone_inferior_command(), extended_remote_attach(), follow_exec(), follow_fork_inferior(), handle_inferior_event_1(), inferior_command(), mi_cmd_execute(), mi_cmd_remove_inferior(), run_one_inferior(), switch_to_thread_no_regs(), scoped_restore_current_inferior::~scoped_restore_current_inferior(), and scoped_restore_current_thread::~scoped_restore_current_thread().
| void set_inferior_args | ( | const char * | ) |
Definition at line 183 of file infcmd.c.
References inferior::argc, inferior::args, inferior::argv, current_inferior(), and xfree().
Referenced by get_inferior_args(), run_command_1(), and set_args_command().
| void set_inferior_args_vector | ( | int | , |
| char ** | |||
| ) |
Definition at line 192 of file infcmd.c.
References inferior::argc, gdb::argv, inferior::argv, and current_inferior().
Referenced by captured_main_1().
| void set_inferior_io_terminal | ( | const char * | terminal_name | ) |
Definition at line 120 of file infcmd.c.
References current_inferior(), inferior::terminal, and xfree().
Referenced by captured_main_1(), mi_cmd_inferior_tty_set(), and set_inferior_tty_command().
| void set_sigint_trap | ( | void | ) |
Definition at line 703 of file inflow.c.
References current_inferior(), get_inflow_inferior_data(), osig, osig_set, pass_signal(), and terminal_info::run_terminal.
Referenced by inf_ptrace_wait(), linux_nat_terminal_inferior(), rs6000_wait(), and spu_child_wait().
| void setup_inferior | ( | int | from_tty | ) |
Definition at line 2640 of file infcmd.c.
References current_inferior(), current_target, exec_file_locate_attach(), get_exec_file(), inferior::inferior(), inferior_ptid, inferior::needs_setup, post_create_inferior(), ptid_get_pid(), reopen_exec_file(), reread_symbols(), and target_post_attach.
Referenced by attach_post_wait(), process_initial_stop_replies(), and stop_all_threads().
| CORE_ADDR signed_pointer_to_address | ( | struct gdbarch * | gdbarch, |
| struct type * | type, | ||
| const gdb_byte * | buf | ||
| ) |
Definition at line 320 of file findvar.c.
References extract_signed_integer(), gdbarch_byte_order(), and TYPE_LENGTH.
Referenced by mips_gdbarch_init().
| void unsigned_address_to_pointer | ( | struct gdbarch * | gdbarch, |
| struct type * | type, | ||
| gdb_byte * | buf, | ||
| CORE_ADDR | addr | ||
| ) |
Definition at line 331 of file findvar.c.
References gdbarch_byte_order(), store_unsigned_integer(), and TYPE_LENGTH.
Referenced by gdbarch_alloc().
| CORE_ADDR unsigned_pointer_to_address | ( | struct gdbarch * | gdbarch, |
| struct type * | type, | ||
| const gdb_byte * | buf | ||
| ) |
Definition at line 311 of file findvar.c.
References extract_unsigned_integer(), gdbarch_byte_order(), and TYPE_LENGTH.
Referenced by gdbarch_alloc().
| int valid_gdb_inferior_id | ( | int | num | ) |
Definition at line 362 of file inferior.c.
References arm-linux::inf, inferior_list, and inferior::num.
Referenced by detach_inferior_command(), and kill_inferior_command().
| struct inferior* inferior_list |
Definition at line 45 of file inferior.c.
Referenced by ada_tasks_new_objfile_observer(), add_inferior_silent(), delete_inferior(), discard_all_inferiors(), exit_inferior_1(), find_inferior_for_program_space(), find_inferior_id(), find_inferior_pid(), have_inferiors(), in_inferior_list(), iterate_over_inferiors(), number_of_inferiors(), number_of_live_inferiors(), pid_to_gdb_inferior_id(), print_inferior(), print_program_space(), prune_inferiors(), show_inferior_qualified_tids(), update_address_spaces(), and valid_gdb_inferior_id().
| ptid_t inferior_ptid |
Definition at line 94 of file infcmd.c.
Referenced by _initialize_infrun(), aarch64_linux_insert_hw_breakpoint(), aarch64_linux_insert_watchpoint(), aarch64_linux_read_description(), aarch64_linux_remove_hw_breakpoint(), aarch64_linux_remove_watchpoint(), aarch64_linux_stopped_data_address(), ada_exception_support_info_sniffer(), add_current_inferior_and_thread(), add_fork(), add_thread_db_info(), add_thread_silent(), add_to_thread_list(), adi_align_address(), adi_assign_command(), adi_available(), adi_convert_byte_count(), adi_examine_command(), adi_is_addr_mapped(), adi_normalize_address(), adi_print_versions(), adi_read_versions(), adi_tag_fd(), adi_write_versions(), aix_thread_get_ada_task_ptid(), aix_thread_resume(), aix_thread_wait(), aix_thread_xfer_partial(), amd64fbsd_read_description(), any_live_thread_of_process(), any_thread_of_process(), append_pending_thread_resumptions(), arm_linux_get_hwbp_cap(), arm_linux_insert_hw_breakpoint1(), arm_linux_read_description(), arm_linux_remove_hw_breakpoint1(), arm_linux_stopped_data_address(), attach_command(), BP_MANIPULATION(), bpfinishpy_init(), bpstat_clear_actions(), bpstat_do_actions(), breakpoint_about_to_proceed(), breakpoint_re_set_thread(), bsd_kvm_close(), bsd_kvm_open(), bsd_uthread_fetch_registers(), bsd_uthread_store_registers(), bsd_uthread_update_thread_list(), bsd_uthread_wait(), btrace_fetch(), call_function_by_hand_dummy(), can_use_watchpoint_cond_accel(), check_for_thread_db(), check_pid_namespace_match(), check_stopped_by_watchpoint(), checkpoint_command(), child_terminal_info(), clear_proceed_status(), cli_on_user_selected_context_changed(), cmd_record_delete(), cmd_record_save(), context_switch(), continue_command(), core_close(), core_open(), cur_thread(), current_lwp_ptid(), darwin_attach(), darwin_decode_message(), darwin_detach(), darwin_get_ada_task_ptid(), darwin_init_thread_list(), darwin_kill_inferior(), darwin_resume(), darwin_stop_inferior(), dcache_read_memory_partial(), default_child_has_all_memory(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), default_get_ada_task_ptid(), default_target_pass_ctrlc(), thread_info::deletable(), delete_checkpoint_command(), delete_fork(), detach_breakpoints(), detach_checkpoint_command(), detach_command(), dtrace_probe::disable(), displaced_step_prepare_throw(), display_current_task_id(), display_tib(), do_detach(), do_initial_windows_stuff(), dummy_frame_sniffer(), elf_gnu_ifunc_resolver_return_stop(), elf_gnu_ifunc_resolver_stop(), dtrace_probe::enable(), enable_break(), ensure_not_running(), ensure_valid_thread(), evaluate_subexp(), extended_remote_attach(), fbsd_core_xfer_siginfo(), fbsd_find_memory_regions(), fbsd_make_corefile_notes(), fetch_inferior_event(), fetch_ppc_memory(), fetch_ppc_register(), find_frame_sal(), find_signalled_thread(), follow_fork(), follow_fork_inferior(), for_each_just_stopped_thread(), frame_inlined_callees(), frame_pop(), frame_show_address(), gcore_command(), gdbpy_current_recording(), gdbpy_selected_thread(), gdbsim_create_inferior(), gdbsim_kill(), gdbsim_open(), gdbsim_wait(), generic_mourn_inferior(), get_call_return_value(), get_current_regcache(), get_current_thread(), get_displaced_step_closure_by_addr(), get_event_thread(), get_signaled_thread(), get_task_from_args(), get_thread_current_frame(), get_windows_debug_event(), gnu_attach(), gnu_create_inferior(), gnu_detach(), gnu_kill_inferior(), gnu_resume(), gnu_wait(), go32_create_inferior(), go32_mourn_inferior(), handle_inferior_event_1(), handle_signal_stop(), handle_syscall_event(), handle_vfork_child_exec_or_exit(), has_stack_frames(), i386_darwin_dr_get(), i386_darwin_dr_set(), i386fbsd_resume(), ia64_linux_stopped_data_address(), inf_ptrace_attach(), inf_ptrace_detach(), inf_ptrace_detach_success(), inf_ptrace_files_info(), inf_ptrace_kill(), inf_ptrace_mourn_inferior(), inf_ptrace_resume(), inf_ptrace_wait(), inf_ptrace_xfer_partial(), inf_validate_procs(), inferior_call_waitpid(), inferior_command(), inferior_event_handler(), inferior_thread(), info_checkpoints_command(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_region_command(), info_program_command(), infrun_thread_ptid_changed(), init_wait_for_inferior(), inline_frame_sniffer(), insert_breakpoint_locations(), insert_catch_exec(), insert_catch_fork(), insert_catch_vfork(), internal_resume_ptid(), interrupt_query(), interrupt_target_1(), keep_going_pass_signal(), kill_command(), kill_if_already_running(), linux_child_follow_fork(), linux_core_xfer_siginfo(), linux_fill_prpsinfo(), linux_fork_context(), linux_fork_detach(), linux_fork_mourn_inferior(), linux_get_siginfo_data(), linux_make_corefile_notes(), linux_nat_attach(), linux_nat_detach(), linux_nat_kill(), linux_nat_mourn_inferior(), linux_nat_resume(), linux_nat_stopped_by_hw_breakpoint(), linux_nat_stopped_by_sw_breakpoint(), linux_nat_stopped_by_watchpoint(), linux_nat_stopped_data_address(), linux_nat_switch_fork(), linux_nat_wait_1(), linux_nat_xfer_partial(), linux_proc_xfer_partial(), linux_proc_xfer_spu(), linux_xfer_siginfo(), maint_btrace_clear_cmd(), maint_btrace_clear_packet_history_cmd(), maint_btrace_packet_history_cmd(), maint_info_btrace_cmd(), memory_xfer_partial_1(), mi_about_to_proceed(), mi_cmd_thread_list_ids(), mi_cmd_thread_select(), mi_cmd_var_update_iter(), mi_execute_command(), mi_on_normal_stop_1(), mi_user_selected_context_changed(), mips_linux_can_use_hw_breakpoint(), mips_linux_insert_watchpoint(), mips_linux_read_description(), mips_linux_region_ok_for_hw_watchpoint(), mips_linux_stopped_by_watchpoint(), normal_stop(), notice_new_inferior(), nto_handle_sigint(), parse_spufs_run(), pass_signal(), pd_activate(), pd_deactivate(), pd_update(), pop_dummy_frame(), postfork_hook(), ppc_linux_can_use_hw_breakpoint(), ppc_linux_read_description(), ppc_linux_spe_context(), ppc_linux_stopped_data_address(), ppc_linux_target_wordsize(), ppc_ravenscar_generic_fetch_registers(), ppc_ravenscar_generic_store_registers(), prepare_one_step(), print_ada_task_info(), print_selected_thread_frame(), print_thread_info_1(), proc_find_memory_regions(), proc_set_current_signal(), proc_trace_syscalls(), proceed(), process_initial_stop_replies(), process_stop_reply(), procfs_attach(), procfs_create_inferior(), procfs_detach(), procfs_do_thread_registers(), procfs_files_info(), procfs_info_proc(), procfs_insert_watchpoint(), procfs_kill_inferior(), procfs_make_note_section(), procfs_mourn_inferior(), procfs_pass_signals(), procfs_remove_watchpoint(), procfs_resume(), procfs_set_watchpoint(), procfs_stopped_by_watchpoint(), procfs_stopped_data_address(), procfs_update_thread_list(), procfs_wait(), procfs_xfer_auxv(), procfs_xfer_memory(), ps_lgetfpregs(), ps_lgetregs(), ps_lsetfpregs(), ps_lsetregs(), ps_xfer_memory(), python_on_normal_stop(), ravenscar_core_of_thread(), ravenscar_resume(), ravenscar_stopped_by_hw_breakpoint(), ravenscar_stopped_by_sw_breakpoint(), ravenscar_stopped_by_watchpoint(), ravenscar_stopped_data_address(), ravenscar_update_inferior_ptid(), ravenscar_wait(), raw_memory_xfer_partial(), read_ptid(), record_btrace_frame_sniffer(), record_btrace_info(), record_btrace_resume(), record_btrace_tailcall_frame_sniffer(), record_btrace_xfer_partial(), record_full_wait_1(), record_mourn_inferior(), registers_changed_ptid(), remote_close(), remote_detach_1(), remote_get_ada_task_ptid(), remote_kill(), remote_mourn(), remote_newthread_step(), remote_notice_new_inferior(), remote_parse_stop_reply(), remote_pass_ctrlc(), remote_read_description(), remote_resume(), remote_resume_with_vcont(), remote_serial_quit_handler(), remote_start_remote(), remote_update_thread_list(), remote_wait_as(), remote_xfer_partial(), remove_catch_exec(), remove_catch_fork(), remove_catch_vfork(), require_btrace_thread(), resume(), resume_1(), rs6000_wait(), rs6000_xfer_partial(), rs6000_xfer_shared_libraries(), run_command_1(), run_inferior_call(), run_one_inferior(), rw_common(), s390_inferior_tid(), s390_insert_hw_breakpoint(), s390_insert_watchpoint(), s390_remove_hw_breakpoint(), s390_remove_watchpoint(), s390_stopped_by_watchpoint(), save_stop_context(), scoped_restore_current_thread::scoped_restore_current_thread(), set_enable_mach_exceptions(), set_general_process(), set_longjmp_breakpoint_for_call_dummy(), set_momentary_breakpoint(), setup_inferior(), siginfo_make_value(), signal_command(), sol_thread_detach(), sol_thread_resume(), sol_thread_wait(), sol_thread_xfer_partial(), sol_update_thread_list_callback(), sparc_ravenscar_fetch_registers(), sparc_ravenscar_store_registers(), sparc_xfer_wcookie(), spu2ppu_sniffer(), spu_child_wait(), spu_fetch_inferior_registers(), spu_fetch_registers(), spu_proc_xfer_spu(), spu_skip_standalone_loader(), spu_store_inferior_registers(), spu_store_registers(), stop_all_threads(), stop_context_changed(), store_ppc_memory(), store_regs(), switch_to_no_thread(), switch_to_thread(), switch_to_thread_no_regs(), sync_threadlists(), target_announce_detach(), target_detach(), target_has_execution_current(), target_mourn_inferior(), target_translate_tls_address(), tfile_close(), tfile_open(), thread_apply_all_command(), thread_apply_command(), thread_command(), thread_db_detach(), thread_db_get_ada_task_ptid(), thread_db_load(), thread_db_mourn_inferior(), thread_db_resume(), thread_name_command(), thread_num_make_value_helper(), tlb_make_value(), tlb_value_read(), try_thread_db_load(), try_thread_db_load_1(), tui_make_status_line(), tui_on_user_selected_context_changed(), update_inserted_breakpoint_locations(), update_solib_list(), user_visible_resume_ptid(), validate_registers_access(), varobj_create(), VEC(), watch_command_1(), watchpoint_in_thread_scope(), windows_close(), windows_detach(), windows_files_info(), windows_get_ada_task_ptid(), windows_kill_inferior(), windows_resume(), write_memory_ptid(), x86_cleanup_dregs(), x86_insert_hw_breakpoint(), x86_insert_watchpoint(), x86_linux_read_description(), x86_region_ok_for_watchpoint(), x86_remove_hw_breakpoint(), x86_remove_watchpoint(), x86_stopped_by_watchpoint(), x86_stopped_data_address(), and scoped_restore_current_thread::~scoped_restore_current_thread().
| CORE_ADDR stop_pc |
Definition at line 98 of file infcmd.c.
Referenced by cplus_skip_trampoline(), fill_in_stop_func(), fork_load_infrun_state(), gnuv3_skip_trampoline(), handle_inferior_event_1(), handle_signal_stop(), handle_step_into_function(), handle_step_into_function_backward(), handle_syscall_event(), info_program_command(), keep_going_stepped_thread(), m32c_skip_trampoline_code(), objc_skip_trampoline(), post_create_inferior(), print_one_stopped_thread(), print_stop_location(), proceed(), process_event_stop_test(), record_btrace_set_replay(), record_full_goto_entry(), restore_infcall_suspend_state(), save_infcall_suspend_state(), switch_to_no_thread(), switch_to_thread(), and switch_to_thread_no_regs().
| enum stop_stack_kind stop_stack_dummy |
Definition at line 102 of file infcmd.c.
Referenced by call_function_by_hand_dummy(), call_thread_fsm_should_stop(), handle_inferior_event_1(), normal_stop(), process_event_stop_test(), restore_infcall_control_state(), run_inferior_call(), and save_infcall_control_state().
| int stopped_by_random_signal |
Definition at line 107 of file infcmd.c.
Referenced by call_function_by_hand_dummy(), handle_signal_stop(), normal_stop(), restore_infcall_control_state(), and save_infcall_control_state().
1.8.14