GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "frame.h"
#include "inferior.h"
#include "infrun.h"
#include "gdbsupport/environ.h"
#include "value.h"
#include "gdbcmd.h"
#include "symfile.h"
#include "gdbcore.h"
#include "target.h"
#include "language.h"
#include "objfiles.h"
#include "completer.h"
#include "ui-out.h"
#include "regcache.h"
#include "reggroups.h"
#include "block.h"
#include "solib.h"
#include <ctype.h>
#include "observable.h"
#include "target-descriptions.h"
#include "user-regs.h"
#include "gdbthread.h"
#include "valprint.h"
#include "inline-frame.h"
#include "tracepoint.h"
#include "inf-loop.h"
#include "linespec.h"
#include "thread-fsm.h"
#include "top.h"
#include "interps.h"
#include "skip.h"
#include "gdbsupport/gdb_optional.h"
#include "source.h"
#include "cli/cli-style.h"
#include "dwarf2/loc.h"
Go to the source code of this file.
Classes | |
struct | step_command_fsm |
struct | until_next_fsm |
struct | return_value_info |
struct | finish_command_fsm |
struct | finish_command_fsm::return_value_info |
Macros | |
#define | ERROR_NO_INFERIOR if (!target_has_execution ()) error (_("The program is not being run.")); |
#define | RUN_ARGS_HELP "You may specify arguments to give it.\n\Args may include \"*\", or \"[...]\"; they are expanded using the\n\shell that will start the program (specified by the \"$SHELL\" environment\n\variable). Input and output redirection with \">\", \"<\", or \">>\"\n\are also allowed.\n\\n\With no arguments, uses arguments last specified (with \"run\" or \n\\"set args\"). To cancel previous arguments and run with no arguments,\n\use \"set args\" without arguments.\n\\n\To start the inferior without using a shell, use \"set startup-with-shell off\"." |
Enumerations | |
enum | run_how { RUN_NORMAL , RUN_STOP_AT_MAIN , RUN_STOP_AT_FIRST_INSN } |
enum | attach_post_wait_mode { ATTACH_POST_WAIT_NOTHING , ATTACH_POST_WAIT_RESUME , ATTACH_POST_WAIT_STOP } |
Functions | |
static void | until_next_command (int) |
static void | step_1 (int, int, const char *) |
static void | set_inferior_tty_command (const char *args, int from_tty, struct cmd_list_element *c) |
static void | show_inferior_tty_command (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | set_inferior_args_vector (int argc, char **argv) |
static void | set_args_command (const char *args, int from_tty, struct cmd_list_element *c) |
static void | show_args_command (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
const std::string & | get_inferior_cwd () |
static void | set_cwd_command (const char *args, int from_tty, struct cmd_list_element *c) |
static void | show_cwd_command (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static gdb::unique_xmalloc_ptr< char > | strip_bg_char (const char *args, int *bg_char_p) |
void | post_create_inferior (int from_tty) |
static void | kill_if_already_running (int from_tty) |
void | prepare_execution_command (struct target_ops *target, int background) |
static void | run_command_1 (const char *args, int from_tty, enum run_how run_how) |
static void | run_command (const char *args, int from_tty) |
static void | start_command (const char *args, int from_tty) |
static void | starti_command (const char *args, int from_tty) |
static int | proceed_thread_callback (struct thread_info *thread, void *arg) |
static void | ensure_valid_thread (void) |
static void | ensure_not_tfind_mode (void) |
static void | error_is_running (void) |
static void | ensure_not_running (void) |
void | continue_1 (int all_threads) |
static void | continue_command (const char *args, int from_tty) |
static void | set_step_frame (thread_info *tp) |
static void | step_command (const char *count_string, int from_tty) |
static void | next_command (const char *count_string, int from_tty) |
static void | stepi_command (const char *count_string, int from_tty) |
static void | nexti_command (const char *count_string, int from_tty) |
static void | step_command_fsm_prepare (struct step_command_fsm *sm, int skip_subroutines, int single_inst, int count, struct thread_info *thread) |
static int | prepare_one_step (thread_info *, struct step_command_fsm *sm) |
static void | jump_command (const char *arg, int from_tty) |
static void | signal_command (const char *signum_exp, int from_tty) |
static void | queue_signal_command (const char *signum_exp, int from_tty) |
static void | until_command (const char *arg, int from_tty) |
static void | advance_command (const char *arg, int from_tty) |
struct value * | get_return_value (struct symbol *func_symbol, struct value *function) |
static void | print_return_value_1 (struct ui_out *uiout, struct return_value_info *rv) |
void | print_return_value (struct ui_out *uiout, struct return_value_info *rv) |
static void | finish_backward (struct finish_command_fsm *sm) |
static void | finish_forward (struct finish_command_fsm *sm, frame_info_ptr frame) |
static frame_info_ptr | skip_finish_frames (frame_info_ptr frame) |
static void | finish_command (const char *arg, int from_tty) |
static void | info_program_command (const char *args, int from_tty) |
static void | environment_info (const char *var, int from_tty) |
static void | set_environment_command (const char *arg, int from_tty) |
static void | unset_environment_command (const char *var, int from_tty) |
static void | path_info (const char *args, int from_tty) |
static void | path_command (const char *dirname, int from_tty) |
static void | pad_to_column (string_file &stream, int col) |
static void | default_print_one_register_info (struct ui_file *file, const char *name, struct value *val) |
void | default_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file, frame_info_ptr frame, int regnum, int print_all) |
void | registers_info (const char *addr_exp, int fpregs) |
static void | info_all_registers_command (const char *addr_exp, int from_tty) |
static void | info_registers_command (const char *addr_exp, int from_tty) |
static void | print_vector_info (struct ui_file *file, frame_info_ptr frame, const char *args) |
static void | info_vector_command (const char *args, int from_tty) |
static void | kill_command (const char *arg, int from_tty) |
static void | proceed_after_attach (inferior *inf) |
void | setup_inferior (int from_tty) |
static void | attach_post_wait (int from_tty, enum attach_post_wait_mode mode) |
void | attach_command (const char *args, int from_tty) |
void | notice_new_inferior (thread_info *thr, bool leave_running, int from_tty) |
void | detach_command (const char *args, int from_tty) |
static void | disconnect_command (const char *args, int from_tty) |
static void | stop_current_target_threads_ns (ptid_t ptid) |
void | interrupt_target_1 (bool all_threads) |
static void | interrupt_command (const char *args, int from_tty) |
void | default_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, frame_info_ptr frame, const char *args) |
static void | info_float_command (const char *args, int from_tty) |
static void | info_proc_cmd_1 (const char *args, enum info_proc_what what, int from_tty) |
static void | info_proc_cmd (const char *args, int from_tty) |
static void | info_proc_cmd_mappings (const char *args, int from_tty) |
static void | info_proc_cmd_stat (const char *args, int from_tty) |
static void | info_proc_cmd_status (const char *args, int from_tty) |
static void | info_proc_cmd_cwd (const char *args, int from_tty) |
static void | info_proc_cmd_cmdline (const char *args, int from_tty) |
static void | info_proc_cmd_exe (const char *args, int from_tty) |
static void | info_proc_cmd_files (const char *args, int from_tty) |
static void | info_proc_cmd_all (const char *args, int from_tty) |
static void | show_print_finish (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | _initialize_infcmd () |
Variables | |
static std::string | inferior_args_scratch |
static std::string | inferior_cwd_scratch |
static std::string | inferior_io_terminal_scratch |
ptid_t | inferior_ptid |
enum stop_stack_kind | stop_stack_dummy |
int | stopped_by_random_signal |
static bool | finish_print = true |
static const char | path_var_name [] = "PATH" |
#define ERROR_NO_INFERIOR if (!target_has_execution ()) error (_("The program is not being run.")); |
#define RUN_ARGS_HELP "You may specify arguments to give it.\n\Args may include \"*\", or \"[...]\"; they are expanded using the\n\shell that will start the program (specified by the \"$SHELL\" environment\n\variable). Input and output redirection with \">\", \"<\", or \">>\"\n\are also allowed.\n\\n\With no arguments, uses arguments last specified (with \"run\" or \n\\"set args\"). To cancel previous arguments and run with no arguments,\n\use \"set args\" without arguments.\n\\n\To start the inferior without using a shell, use \"set startup-with-shell off\"." |
enum run_how |
void _initialize_infcmd | ( | ) |
Definition at line 3085 of file infcmd.c.
Referenced by initialize_all_files().
|
static |
Definition at line 1450 of file infcmd.c.
References current_inferior(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), error_no_arg(), ERROR_NO_INFERIOR, prepare_execution_command(), strip_bg_char(), and until_break_command().
void attach_command | ( | const char * | args, |
int | from_tty | ||
) |
Definition at line 2607 of file infcmd.c.
References inferior::add_continuation(), inferior::args(), target_ops::attach(), attach_post_wait(), ATTACH_POST_WAIT_RESUME, ATTACH_POST_WAIT_STOP, inferior::control, current_inferior(), dont_repeat(), find_attach_target(), gdbarch_has_global_solist(), target_terminal::inferior(), inferior_ptid, infrun_debug_show_threads(), target_terminal::init(), init_wait_for_inferior(), mark_infrun_async_event_handler(), inferior::needs_setup, inferior::non_exited_threads(), non_stop, prepare_execution_command(), inferior::process_target(), query(), scoped_disable_commit_resumed::reset_and_commit(), STOP_QUIETLY_NO_SIGSTOP, inferior_control_state::stop_soon, strip_bg_char(), target_ops::supports_non_stop(), target_async(), target_attach_no_wait(), target_can_async_p(), target_gdbarch(), target_has_execution(), target_is_async_p(), target_is_non_stop_p(), target_kill(), target_pre_inferior(), target_stop(), process_stratum_target::threads_executing, and validate_exec_file().
Referenced by captured_main_1().
|
static |
Definition at line 2533 of file infcmd.c.
References ATTACH_POST_WAIT_RESUME, ATTACH_POST_WAIT_STOP, clear_proceed_status(), inferior::control, current_inferior(), deprecated_attach_hook, thread_info::inf, inferior_thread(), inferior::needs_setup, NO_STOP_QUIETLY, inferior::non_exited_threads(), non_stop, normal_stop(), inferior::num, thread_info::per_inf_num, inferior::pid, proceed(), proceed_after_attach(), setup_inferior(), stop_all_threads(), inferior_control_state::stop_soon, switch_to_thread(), target_is_non_stop_p(), and target_stop().
Referenced by attach_command(), and notice_new_inferior().
void continue_1 | ( | int | all_threads | ) |
Definition at line 617 of file infcmd.c.
References all_threads(), 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, ui::prompt_state, and scoped_disable_commit_resumed::reset_and_commit().
Referenced by continue_command(), and exec_continue().
|
static |
Definition at line 667 of file infcmd.c.
References bpstat_num(), continue_1(), thread_info::control, current_inferior(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), ERROR_NO_INFERIOR, find_thread_ptid(), gdb_printf(), get_last_target_status(), inferior_thread(), non_stop, parse_and_eval_long(), prepare_execution_command(), set_ignore_count(), thread_control_state::stop_bpstat, and strip_bg_char().
void default_print_float_info | ( | struct gdbarch * | gdbarch, |
struct ui_file * | file, | ||
frame_info_ptr | frame, | ||
const char * | args | ||
) |
Definition at line 2935 of file infcmd.c.
References float_reggroup, gdb_printf(), gdbarch_num_cooked_regs(), gdbarch_print_registers_info(), gdbarch_register_reggroup_p(), and regnum.
Referenced by mips_print_float_info().
|
static |
Definition at line 2162 of file infcmd.c.
References string_file::c_str(), type::code(), common_val_print(), current_language, gdb_printf(), gdb_puts(), get_formatted_print_options(), get_user_print_options(), type::is_vector(), type::length(), name, pad_to_column(), print_hex_chars(), ui_file::putc(), ui_file::puts(), type_byte_order(), value_contents_for_printing(), value_entirely_available(), value_optimized_out(), and value_type().
Referenced by default_print_registers_info(), and registers_info().
void default_print_registers_info | ( | struct gdbarch * | gdbarch, |
struct ui_file * | file, | ||
frame_info_ptr | frame, | ||
int | regnum, | ||
int | print_all | ||
) |
Definition at line 2241 of file infcmd.c.
References all_reggroup, default_print_one_register_info(), gdbarch_num_cooked_regs(), gdbarch_register_name(), gdbarch_register_reggroup_p(), general_reggroup, regnum, and value_of_register().
Referenced by s12z_print_registers_info().
void detach_command | ( | const char * | args, |
int | from_tty | ||
) |
Definition at line 2794 of file infcmd.c.
References as_process_stratum_target(), breakpoint_init_inferior(), current_inferior(), deprecated_detach_hook, disconnect_tracing(), dont_repeat(), gdbarch_has_global_solist(), inf_exited, inferior_ptid, no_shared_libraries(), inferior::process_target(), query_if_trace_running(), scoped_disable_commit_resumed::reset_and_commit(), restart_after_all_stop_detach(), target_detach(), target_gdbarch(), and target_is_non_stop_p().
Referenced by detach_inferior_command(), and mi_cmd_target_detach().
|
static |
Definition at line 2849 of file infcmd.c.
References inferior::args(), deprecated_detach_hook, disconnect_tracing(), dont_repeat(), init_thread_list(), no_shared_libraries(), query_if_trace_running(), and target_disconnect().
|
static |
Definition at line 610 of file infcmd.c.
References error_is_running(), inferior_thread(), and THREAD_RUNNING.
Referenced by advance_command(), continue_1(), continue_command(), finish_command(), jump_command(), queue_signal_command(), signal_command(), step_1(), and until_command().
|
static |
Definition at line 592 of file infcmd.c.
References get_traceframe_number().
Referenced by advance_command(), continue_1(), continue_command(), finish_command(), jump_command(), queue_signal_command(), signal_command(), step_1(), and until_command().
|
static |
Definition at line 580 of file infcmd.c.
References inferior_ptid, inferior_thread(), and THREAD_EXITED.
Referenced by advance_command(), continue_1(), continue_command(), finish_command(), jump_command(), queue_signal_command(), signal_command(), step_1(), and until_command().
|
static |
Definition at line 2008 of file infcmd.c.
References current_inferior(), inferior::environment, and gdb_puts().
|
static |
Definition at line 601 of file infcmd.c.
Referenced by ensure_not_running().
|
static |
Definition at line 1711 of file infcmd.c.
References thread_info::control, find_pc_line(), find_pc_partial_function(), get_current_frame(), get_frame_arch(), get_frame_pc(), get_frame_program_space(), get_selected_frame(), inferior_thread(), insert_step_resume_breakpoint_at_sal(), null_frame_id, symtab_and_line::pc, proceed(), thread_control_state::proceed_to_finish, symtab_and_line::pspace, thread_control_state::step_range_end, and thread_control_state::step_range_start.
Referenced by finish_command().
|
static |
Definition at line 1816 of file infcmd.c.
References check_typedef(), clear_proceed_status(), type::code(), command_interp(), thread_info::control, current_inferior(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), ERROR_NO_INFERIOR, EXEC_REVERSE, execution_direction, find_pc_function(), finish_backward(), finish_forward(), finish_command_fsm::function, gdb_printf(), gdbarch_get_return_buf_addr(), gdbarch_return_value(), get_frame_arch(), get_frame_pc(), get_frame_type(), get_prev_frame(), get_selected_frame(), inferior_thread(), INLINE_FRAME, LOCATION, prepare_execution_command(), frame_info_ptr::prepare_reinflate(), general_symbol_info::print_name(), print_stack_frame(), proceed(), query(), read_var_value(), frame_info_ptr::reinflate(), finish_command_fsm::return_buf, RETURN_VALUE_STRUCT_CONVENTION, set_step_info(), thread_info::set_thread_fsm(), skip_finish_frames(), STEP_OVER_ALL, thread_control_state::step_over_calls, thread_control_state::step_range_end, thread_control_state::step_range_start, strip_bg_char(), type::target_type(), symbol::type(), and TYPE_NO_RETURN.
|
static |
Definition at line 1763 of file infcmd.c.
References bp_finish, finish_command_fsm::breakpoint, thread_info::control, find_pc_line(), get_frame_arch(), get_frame_id(), get_frame_pc(), get_stack_frame_id(), inferior_thread(), symtab_and_line::pc, proceed(), thread_control_state::proceed_to_finish, set_longjmp_breakpoint(), and set_momentary_breakpoint().
Referenced by finish_command().
const std::string & get_inferior_cwd | ( | ) |
Definition at line 164 of file infcmd.c.
References current_inferior(), and inferior::cwd().
Referenced by fork_inferior().
Definition at line 1474 of file infcmd.c.
References allocate_value(), reg_buffer::arch(), check_typedef(), type::code(), gdbarch_return_value(), get_current_regcache(), is_nocall_function(), general_symbol_info::print_name(), RETURN_VALUE_ABI_PRESERVES_ADDRESS, RETURN_VALUE_ABI_RETURNS_ADDRESS, RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, type::target_type(), symbol::type(), value_contents_raw(), and value_type().
Referenced by bpfinishpy_pre_stop_hook(), and finish_command_fsm::should_stop().
|
static |
Definition at line 2390 of file infcmd.c.
References registers_info().
|
static |
Definition at line 2955 of file infcmd.c.
References inferior::args(), gdb_stdout, gdbarch_print_float_info(), get_frame_arch(), get_selected_frame(), and target_has_registers().
|
static |
Definition at line 2985 of file infcmd.c.
References info_proc_cmd_1(), and IP_MINIMAL.
|
static |
Definition at line 2969 of file infcmd.c.
References gdbarch_info_proc(), gdbarch_info_proc_p(), get_current_arch(), and target_info_proc().
Referenced by info_proc_cmd(), info_proc_cmd_all(), info_proc_cmd_cmdline(), info_proc_cmd_cwd(), info_proc_cmd_exe(), info_proc_cmd_files(), info_proc_cmd_mappings(), info_proc_cmd_stat(), and info_proc_cmd_status().
|
static |
Definition at line 3049 of file infcmd.c.
References info_proc_cmd_1(), and IP_ALL.
|
static |
Definition at line 3025 of file infcmd.c.
References info_proc_cmd_1(), and IP_CMDLINE.
|
static |
Definition at line 3017 of file infcmd.c.
References info_proc_cmd_1(), and IP_CWD.
|
static |
Definition at line 3033 of file infcmd.c.
References info_proc_cmd_1(), and IP_EXE.
|
static |
Definition at line 3041 of file infcmd.c.
References info_proc_cmd_1(), and IP_FILES.
|
static |
Definition at line 2993 of file infcmd.c.
References info_proc_cmd_1(), and IP_MAPPINGS.
|
static |
Definition at line 3001 of file infcmd.c.
References info_proc_cmd_1(), and IP_STAT.
|
static |
Definition at line 3009 of file infcmd.c.
References info_proc_cmd_1(), and IP_STATUS.
|
static |
Definition at line 1938 of file infcmd.c.
References bpstat_num(), thread_info::control, current_inferior(), find_thread_ptid(), gdb_printf(), get_last_target_status(), inferior_ptid, non_stop, paddress(), inferior::process_target(), thread_info::state, thread_control_state::stop_bpstat, thread_info::stop_pc(), thread_info::stop_signal(), thread_control_state::stop_step, target_files_info(), target_gdbarch(), target_has_execution(), THREAD_EXITED, and THREAD_RUNNING.
|
static |
Definition at line 2396 of file infcmd.c.
References registers_info().
|
static |
Definition at line 2428 of file infcmd.c.
References gdb_stdout, get_selected_frame(), print_vector_info(), and target_has_registers().
|
static |
Definition at line 2916 of file infcmd.c.
References all_threads(), inferior::args(), dont_repeat(), interrupt_target_1(), and target_can_async_p().
void interrupt_target_1 | ( | bool | all_threads | ) |
Definition at line 2884 of file infcmd.c.
References all_inferiors(), all_threads(), inferior_ptid, non_stop, scoped_disable_commit_resumed::reset_and_commit(), stop_current_target_threads_ns(), switch_to_inferior_no_thread(), and target_interrupt().
Referenced by interrupt_command(), and mi_cmd_exec_interrupt().
|
static |
Definition at line 1060 of file infcmd.c.
References obj_section::addr(), clear_proceed_status(), current_inferior(), DECODE_LINE_FUNFIRSTLINE, decode_line_with_last_displayed(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), error_no_arg(), ERROR_NO_INFERIOR, find_pc_function(), fixup_symbol_section(), gdb_printf(), gdb_puts(), get_current_arch(), get_current_frame(), get_frame_function(), symtab_and_line::line, general_symbol_info::obj_section(), symbol::objfile(), paddress(), symtab_and_line::pc, prepare_execution_command(), general_symbol_info::print_name(), proceed(), query(), resolve_sal_pc(), section_is_mapped(), section_is_overlay(), strip_bg_char(), and symtab_and_line::symtab.
|
static |
Definition at line 2439 of file infcmd.c.
References current_inferior(), gdb_printf(), inferior_ptid, inferior::num, pid, inferior::pid, print_inferior_events, query(), target_kill(), and target_pid_to_str().
|
static |
Definition at line 325 of file infcmd.c.
References inferior_ptid, query(), target_has_execution(), target_kill(), and target_require_runnable().
Referenced by run_command_1().
|
static |
|
static |
void notice_new_inferior | ( | thread_info * | thr, |
bool | leave_running, | ||
int | from_tty | ||
) |
Definition at line 2742 of file infcmd.c.
References inferior::add_continuation(), attach_post_wait(), ATTACH_POST_WAIT_NOTHING, ATTACH_POST_WAIT_RESUME, inferior::control, current_inferior(), thread_info::executing(), inferior_ptid, STOP_QUIETLY_REMOTE, inferior_control_state::stop_soon, switch_to_thread_no_regs(), and target_stop().
Referenced by remote_target::process_initial_stop_replies(), and remote_target::remote_notice_new_inferior().
|
static |
Definition at line 2149 of file infcmd.c.
References n_spaces(), ui_file::putc(), ui_file::puts(), size, and string_file::size().
Referenced by default_print_one_register_info().
|
static |
Definition at line 2131 of file infcmd.c.
References current_inferior(), dont_repeat(), inferior::environment, mod_path(), path_info(), and path_var_name.
|
static |
Definition at line 2121 of file infcmd.c.
References current_inferior(), gdb_puts(), and path_var_name.
Referenced by path_command().
void post_create_inferior | ( | int | from_tty | ) |
Definition at line 241 of file infcmd.c.
References auto_solib_add, breakpoint_re_set(), thread_info::clear_stop_pc(), current_inferior(), current_program_space, program_space::exec_bfd(), gdbarch_has_global_solist(), get_thread_regcache(), gdb::observers::inferior_created, inferior_thread(), info_verbose, infrun_debug_show_threads(), target_terminal::ours_for_output(), regcache_read_pc(), thread_info::set_stop_pc(), solib_add(), program_space::solib_add_generation, solib_create_inferior_hook(), target_find_description(), and target_gdbarch().
Referenced by core_target_open(), follow_fork_inferior(), run_command_1(), setup_inferior(), start_remote(), and tfile_target_open().
void prepare_execution_command | ( | struct target_ops * | target, |
int | background | ||
) |
Definition at line 344 of file infcmd.c.
References all_uis_on_sync_execution_starting(), and target_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().
|
static |
Definition at line 946 of file infcmd.c.
References symbol::aclass(), thread_info::control, step_command_fsm::count, block::end(), find_frame_sal(), find_pc_line_pc_range(), find_pc_partial_function(), function_name_is_marked_for_skip(), gdb_printf(), get_current_frame(), get_frame_function(), get_frame_pc(), thread_info::inf, inferior_ptid, inline_skipped_frames(), inline_skipped_symbol(), symtab_and_line::line, LOC_BLOCK, thread_control_state::may_range_step, name, target_terminal::ours_for_output(), prepare_one_step(), general_symbol_info::print_name(), inferior::process_target(), thread_info::ptid, thread_fsm::set_finished(), set_running(), set_step_frame(), step_command_fsm::single_inst, step_command_fsm::skip_subroutines, step_into_inline_frame(), STEP_OVER_ALL, thread_control_state::step_over_calls, STEP_OVER_NONE, thread_control_state::step_range_end, thread_control_state::step_range_start, step_stop_if_no_debug, user_visible_resume_ptid(), and symbol::value_block().
Referenced by prepare_one_step(), step_command_fsm::should_stop(), and step_1().
void print_return_value | ( | struct ui_out * | uiout, |
struct return_value_info * | rv | ||
) |
Definition at line 1579 of file infcmd.c.
References check_typedef(), type::code(), exception_print(), gdb_stdout, print_return_value_1(), and return_value_info::type.
Referenced by print_stop_event().
|
static |
Definition at line 1540 of file infcmd.c.
References ui_out::field_fmt(), ui_out::field_stream(), ui_out::field_string(), finish_print, get_user_print_options(), metadata_style, cli_style_option::style(), ui_out::text(), return_value_info::type, type_to_string(), return_value_info::value, return_value_info::value_history_index, and value_print().
Referenced by print_return_value().
|
static |
Definition at line 2402 of file infcmd.c.
References gdb_printf(), gdbarch_num_cooked_regs(), gdbarch_print_registers_info(), gdbarch_print_vector_info(), gdbarch_print_vector_info_p(), gdbarch_register_reggroup_p(), get_frame_arch(), regnum, and vector_reggroup.
Referenced by info_vector_command(), and set_gdbarch_print_vector_info().
|
static |
Definition at line 2470 of file infcmd.c.
References clear_proceed_status(), proceed(), and switch_to_thread().
Referenced by attach_post_wait().
|
static |
Definition at line 556 of file infcmd.c.
References clear_proceed_status(), inferior::has_execution(), thread_info::inf, proceed(), thread_info::state, switch_to_thread(), and THREAD_STOPPED.
Referenced by continue_1().
|
static |
Definition at line 1238 of file infcmd.c.
References ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), error_no_arg(), ERROR_NO_INFERIOR, gdb_signal_from_command(), inferior_thread(), parse_and_eval_long(), thread_info::set_stop_signal(), and signal_pass_state().
void registers_info | ( | const char * | addr_exp, |
int | fpregs | ||
) |
Definition at line 2284 of file infcmd.c.
References default_print_one_register_info(), gdb_stdout, gdbarch_num_cooked_regs(), gdbarch_print_registers_info(), gdbarch_reggroups(), gdbarch_register_reggroup_p(), get_frame_arch(), get_selected_frame(), regnum, 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().
|
static |
Definition at line 525 of file infcmd.c.
References run_command_1(), and RUN_NORMAL.
|
static |
Definition at line 379 of file infcmd.c.
References clear_breakpoint_hit_counts(), target_ops::create_inferior(), current_inferior(), current_language, current_uiout, dont_repeat(), ui_out::field_string(), file_name_style, find_run_target(), ui_out::flush(), get_current_regcache(), get_exec_file(), inferior_thread(), infrun_debug_show_threads(), init_wait_for_inferior(), kill_if_already_running(), language_defn::la_language, language_ada, language_m2, language_pascal, main_name(), non_stop, pid, post_create_inferior(), prepare_execution_command(), proceed(), inferior::process_target(), regcache_read_pc(), reopen_exec_file(), reread_symbols(), scoped_disable_commit_resumed::reset_and_commit(), RUN_STOP_AT_FIRST_INSN, RUN_STOP_AT_MAIN, inferior::set_args(), thread_info::set_pending_waitstatus(), target_waitstatus::set_stopped(), ui_out::spaces(), strip_bg_char(), cli_style_option::style(), target_ops::supports_non_stop(), target_pre_inferior(), tbreak_command(), and ui_out::text().
Referenced by run_command(), start_command(), and starti_command().
|
static |
Definition at line 142 of file infcmd.c.
References current_inferior(), inferior_args_scratch, and inferior::set_args().
|
static |
Definition at line 172 of file infcmd.c.
References current_inferior(), inferior_cwd_scratch, and inferior::set_cwd().
|
static |
Definition at line 2041 of file infcmd.c.
References current_inferior(), inferior::environment, error_no_arg(), and gdb_printf().
void set_inferior_args_vector | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 132 of file infcmd.c.
References current_inferior(), and inferior::set_args().
Referenced by captured_main_1().
|
static |
Definition at line 110 of file infcmd.c.
References current_inferior(), inferior_io_terminal_scratch, and inferior::set_tty().
|
static |
Definition at line 758 of file infcmd.c.
References thread_info::control, find_frame_sal(), find_pc_function(), get_current_frame(), get_frame_pc(), inferior_ptid, thread_info::ptid, set_step_info(), and thread_control_state::step_start_function.
Referenced by prepare_one_step(), and until_next_command().
void setup_inferior | ( | int | from_tty | ) |
Definition at line 2492 of file infcmd.c.
References current_inferior(), exec_file_locate_attach(), get_exec_file(), inferior_ptid, inferior::needs_setup, post_create_inferior(), reopen_exec_file(), reread_symbols(), and target_post_attach().
Referenced by attach_post_wait(), handle_one(), and remote_target::process_initial_stop_replies().
|
static |
Definition at line 152 of file infcmd.c.
References current_inferior(), and deprecated_show_value_hack.
|
static |
Definition at line 180 of file infcmd.c.
References current_inferior(), inferior::cwd(), and gdb_printf().
|
static |
Definition at line 119 of file infcmd.c.
References current_inferior(), gdb_printf(), and inferior::tty().
|
static |
Definition at line 3057 of file infcmd.c.
References gdb_printf().
|
static |
Definition at line 1141 of file infcmd.c.
References all_non_exited_threads(), clear_proceed_status(), current_inferior(), dont_repeat(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), error_no_arg(), ERROR_NO_INFERIOR, gdb_printf(), gdb_signal_from_command(), inferior_thread(), non_stop, parse_and_eval_long(), prepare_execution_command(), print_thread_id(), proceed(), query(), signal_pass_state(), strip_bg_char(), user_visible_resume_ptid(), and user_visible_resume_target().
|
static |
Definition at line 1791 of file infcmd.c.
References skip_tailcall_frames(), and skip_unwritable_frames().
Referenced by finish_command().
|
static |
Definition at line 534 of file infcmd.c.
References have_minimal_symbols(), run_command_1(), and RUN_STOP_AT_MAIN.
|
static |
Definition at line 550 of file infcmd.c.
References run_command_1(), and RUN_STOP_AT_FIRST_INSN.
|
static |
Definition at line 849 of file infcmd.c.
References all_uis_check_sync_execution_done(), thread_fsm::clean_up(), clear_proceed_status(), command_interp(), step_command_fsm::count, current_inferior(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), ERROR_NO_INFERIOR, INF_EXEC_COMPLETE, inferior_event_handler(), inferior_thread(), normal_stop(), parse_and_eval_long(), prepare_execution_command(), prepare_one_step(), proceed(), thread_info::set_thread_fsm(), step_command_fsm::single_inst, step_command_fsm::skip_subroutines, step_command_fsm_prepare(), strip_bg_char(), and thread_info::thread_fsm().
Referenced by next_command(), nexti_command(), step_command(), and stepi_command().
|
static |
|
static |
Definition at line 831 of file infcmd.c.
References thread_info::control, step_command_fsm::count, get_current_frame(), get_frame_id(), set_longjmp_breakpoint(), step_command_fsm::single_inst, step_command_fsm::skip_subroutines, and thread_control_state::stepping_command.
Referenced by step_1().
|
static |
|
static |
Definition at line 2867 of file infcmd.c.
References current_inferior(), inferior::process_target(), set_stop_requested(), and target_stop().
Referenced by interrupt_target_1().
|
static |
Definition at line 207 of file infcmd.c.
Referenced by advance_command(), attach_command(), continue_command(), finish_command(), jump_command(), run_command_1(), signal_command(), step_1(), and until_command().
|
static |
Definition at line 2103 of file infcmd.c.
References current_inferior(), inferior::environment, and query().
|
static |
Definition at line 1428 of file infcmd.c.
References current_inferior(), ensure_not_running(), ensure_not_tfind_mode(), ensure_valid_thread(), ERROR_NO_INFERIOR, prepare_execution_command(), strip_bg_char(), until_break_command(), and until_next_command().
|
static |
Definition at line 1333 of file infcmd.c.
References clear_proceed_status(), command_interp(), thread_info::control, symtab_and_line::end, find_pc_function(), find_pc_line(), func, get_current_frame(), get_frame_id(), get_frame_pc(), thread_info::global_num, inferior_thread(), symtab_and_line::is_stmt, symtab_and_line::line, lookup_minimal_symbol_by_pc(), thread_control_state::may_range_step, bound_minimal_symbol::minsym, proceed(), set_longjmp_breakpoint(), set_step_frame(), thread_info::set_thread_fsm(), STEP_OVER_ALL, thread_control_state::step_over_calls, thread_control_state::step_range_end, thread_control_state::step_range_start, symtab_and_line::symtab, and bound_minimal_symbol::value_address().
Referenced by until_command().
|
static |
Definition at line 105 of file infcmd.c.
Referenced by print_return_value_1().
|
static |
Definition at line 75 of file infcmd.c.
Referenced by set_args_command().
|
static |
Definition at line 79 of file infcmd.c.
Referenced by set_cwd_command().
|
static |
Definition at line 84 of file infcmd.c.
Referenced by set_inferior_tty_command().
ptid_t inferior_ptid |
Definition at line 91 of file infcmd.c.
Referenced by aarch64_insert_hw_breakpoint(), aarch64_insert_watchpoint(), aarch64_remove_hw_breakpoint(), aarch64_remove_watchpoint(), ada_exception_support_info_sniffer(), 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(), 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(), cli_base_on_user_selected_context_changed(), 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(), inf_ptrace_target::files_info(), nto_procfs_target::files_info(), procfs_target::files_info(), windows_nat_target::files_info(), 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(), init_wait_for_inferior(), 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(), 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_about_to_proceed(), mi_cmd_thread_list_ids(), mi_cmd_var_update_iter(), mi_user_selected_context_changed(), 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(), pass_signal(), procfs_target::pass_signals(), pd_deactivate(), pd_enable(), prepare_one_step(), print_ada_task_info(), print_selected_thread_frame(), print_thread_info_1(), proc_set_current_signal(), proc_trace_syscalls(), proceed(), procfs_set_watchpoint(), procfs_xfer_auxv(), procfs_xfer_memory(), ps_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(), 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(), run_inferior_call(), rw_common(), s390_inferior_tid(), 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(), linux_nat_target::stopped_by_hw_breakpoint(), ravenscar_thread_target::stopped_by_hw_breakpoint(), linux_nat_target::stopped_by_sw_breakpoint(), ravenscar_thread_target::stopped_by_sw_breakpoint(), windows_nat_target::stopped_by_sw_breakpoint(), 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(), aarch64_linux_nat_target::store_memtags(), bsd_uthread_target::store_registers(), 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_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(), 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().
|
static |
Definition at line 2118 of file infcmd.c.
Referenced by path_command(), and path_info().
enum stop_stack_kind stop_stack_dummy |
Definition at line 95 of file infcmd.c.
Referenced by call_function_by_hand_dummy(), handle_inferior_event(), normal_stop(), process_event_stop_test(), restore_infcall_control_state(), run_inferior_call(), save_infcall_control_state(), and call_thread_fsm::should_stop().
int stopped_by_random_signal |
Definition at line 100 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().