GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/infcmd.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include <signal.h>
#include "symtab.h"
#include "gdbtypes.h"
#include "frame.h"
#include "inferior.h"
#include "infrun.h"
#include "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 "event-top.h"
#include "parser-defs.h"
#include "regcache.h"
#include "reggroups.h"
#include "block.h"
#include "solib.h"
#include <ctype.h>
#include "observer.h"
#include "target-descriptions.h"
#include "user-regs.h"
#include "cli/cli-decode.h"
#include "gdbthread.h"
#include "valprint.h"
#include "inline-frame.h"
#include "tracepoint.h"
#include "inf-loop.h"
#include "continuations.h"
#include "linespec.h"
#include "cli/cli-utils.h"
#include "infcall.h"
#include "thread-fsm.h"
#include "top.h"
#include "interps.h"
#include "common/gdb_optional.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  attach_command_continuation_args
 

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 *)
 
void set_inferior_io_terminal (const char *terminal_name)
 
const char * get_inferior_io_terminal (void)
 
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)
 
char * get_inferior_args (void)
 
void set_inferior_args (const char *newargs)
 
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)
 
void set_inferior_cwd (const char *cwd)
 
const char * 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)
 
char * construct_inferior_arguments (int argc, char **argv)
 
static gdb::unique_xmalloc_ptr< char > strip_bg_char (const char *args, int *bg_char_p)
 
void post_create_inferior (struct target_ops *target, 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 (void)
 
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)
 
void delete_longjmp_breakpoint_cleanup (void *arg)
 
static void step_command_fsm_clean_up (struct thread_fsm *self, struct thread_info *thread)
 
static int step_command_fsm_should_stop (struct thread_fsm *self, struct thread_info *thread)
 
static enum async_reply_reason step_command_fsm_async_reply_reason (struct thread_fsm *self)
 
static struct step_command_fsmnew_step_command_fsm (struct interp *cmd_interp)
 
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 (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 int until_next_fsm_should_stop (struct thread_fsm *self, struct thread_info *thread)
 
static void until_next_fsm_clean_up (struct thread_fsm *self, struct thread_info *thread)
 
static enum async_reply_reason until_next_fsm_async_reply_reason (struct thread_fsm *self)
 
static struct until_next_fsmnew_until_next_fsm (struct interp *cmd_interp, int thread)
 
static void until_command (const char *arg, int from_tty)
 
static void advance_command (const char *arg, int from_tty)
 
struct valueget_return_value (struct value *function, struct type *value_type)
 
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 int finish_command_fsm_should_stop (struct thread_fsm *self, struct thread_info *thread)
 
static void finish_command_fsm_clean_up (struct thread_fsm *self, struct thread_info *thread)
 
static struct return_value_infofinish_command_fsm_return_value (struct thread_fsm *self)
 
static enum async_reply_reason finish_command_fsm_async_reply_reason (struct thread_fsm *self)
 
static struct finish_command_fsmnew_finish_command_fsm (struct interp *cmd_interp)
 
static void finish_backward (struct finish_command_fsm *sm)
 
static void finish_forward (struct finish_command_fsm *sm, struct frame_info *frame)
 
static struct frame_infoskip_finish_frames (struct frame_info *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 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, struct frame_info *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, struct frame_info *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 int proceed_after_attach_callback (struct thread_info *thread, void *arg)
 
static void proceed_after_attach (int pid)
 
void setup_inferior (int from_tty)
 
static void attach_post_wait (const char *args, int from_tty, enum attach_post_wait_mode mode)
 
static void attach_command_continuation (void *args, int err)
 
static void attach_command_continuation_free_args (void *args)
 
void attach_command (const char *args, int from_tty)
 
void notice_new_inferior (ptid_t ptid, int leave_running, int from_tty)
 
void detach_command (const char *args, int from_tty)
 
static void disconnect_command (const char *args, int from_tty)
 
void interrupt_target_1 (int all_threads)
 
static void interrupt_command (const char *args, int from_tty)
 
void default_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args)
 
static void info_float_command (const char *args, int from_tty)
 
static void unset_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_all (const char *args, int from_tty)
 
void _initialize_infcmd (void)
 

Variables

static char * inferior_args_scratch
 
static char * inferior_cwd_scratch
 
static char * inferior_io_terminal_scratch
 
ptid_t inferior_ptid
 
CORE_ADDR stop_pc
 
enum stop_stack_kind stop_stack_dummy
 
int stopped_by_random_signal
 
int startup_with_shell = 1
 
static struct thread_fsm_ops step_command_fsm_ops
 
static struct thread_fsm_ops until_next_fsm_ops
 
static struct thread_fsm_ops finish_command_fsm_ops
 
static const char path_var_name [] = "PATH"
 

Macro Definition Documentation

◆ ERROR_NO_INFERIOR

#define ERROR_NO_INFERIOR   if (!target_has_execution) error (_("The program is not being run."));

◆ RUN_ARGS_HELP

#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\"."

Definition at line 3202 of file infcmd.c.

Referenced by _initialize_infcmd().

Enumeration Type Documentation

◆ attach_post_wait_mode

Enumerator
ATTACH_POST_WAIT_NOTHING 
ATTACH_POST_WAIT_RESUME 
ATTACH_POST_WAIT_STOP 

Definition at line 2664 of file infcmd.c.

◆ run_how

enum run_how
Enumerator
RUN_NORMAL 
RUN_STOP_AT_MAIN 
RUN_STOP_AT_FIRST_INSN 

Definition at line 548 of file infcmd.c.

Function Documentation

◆ _initialize_infcmd()

void _initialize_infcmd ( void  )

Definition at line 3216 of file infcmd.c.

References _, add_alias_cmd(), add_cmd(), add_com(), add_com_alias(), add_info(), add_info_alias(), add_prefix_cmd(), add_setshow_optional_filename_cmd(), add_setshow_string_noescape_cmd(), advance_command(), attach_command(), class_alias, class_files, class_info, class_run, cmdlist, continue_command(), detach_command(), detachlist, disconnect_command(), environment_info(), filename_completer(), finish_command(), gdb_assert, inferior_args_scratch, inferior_cwd_scratch, inferior_io_terminal_scratch, info_all_registers_command(), info_float_command(), info_proc_cmd(), info_proc_cmd_all(), info_proc_cmd_cmdline(), info_proc_cmd_cwd(), info_proc_cmd_exe(), info_proc_cmd_mappings(), info_proc_cmd_stat(), info_proc_cmd_status(), info_program_command(), info_registers_command(), info_vector_command(), infolist, interrupt_command(), jump_command(), kill_command(), killlist, location_completer(), lookup_cmd(), next_command(), nexti_command(), no_class, noop_completer(), path_command(), path_info(), queue_signal_command(), reg_or_group_completer(), RUN_ARGS_HELP, run_command(), set_args_command(), set_cmd_completer(), set_cwd_command(), set_environment_command(), set_inferior_tty_command(), setlist, show_args_command(), show_cwd_command(), show_inferior_tty_command(), showlist, signal_command(), signal_completer(), start_command(), starti_command(), step_command(), stepi_command(), unset_command(), unset_environment_command(), unsetlist, and until_command().

◆ advance_command()

static void advance_command ( const char *  arg,
int  from_tty 
)
static

◆ attach_command()

void attach_command ( const char *  args,
int  from_tty 
)

◆ attach_command_continuation()

static void attach_command_continuation ( void *  args,
int  err 
)
static

◆ attach_command_continuation_free_args()

static void attach_command_continuation_free_args ( void *  args)
static

Definition at line 2777 of file infcmd.c.

References attach_command_continuation_args::args, and xfree().

Referenced by attach_command(), and notice_new_inferior().

◆ attach_post_wait()

static void attach_post_wait ( const char *  args,
int  from_tty,
enum attach_post_wait_mode  mode 
)
static

◆ construct_inferior_arguments()

char* construct_inferior_arguments ( int  argc,
char **  argv 
)

Definition at line 278 of file infcmd.c.

References _, inferior::argc, gdb::argv, error(), startup_with_shell, and xmalloc().

Referenced by get_inferior_args().

◆ continue_1()

void continue_1 ( int  all_threads)

◆ continue_command()

static void continue_command ( const char *  args,
int  from_tty 
)
static

◆ default_print_float_info()

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

◆ default_print_one_register_info()

static void default_print_one_register_info ( struct ui_file file,
const char *  name,
struct value val 
)
static

◆ default_print_registers_info()

void default_print_registers_info ( struct gdbarch gdbarch,
struct ui_file file,
struct frame_info frame,
int  regnum,
int  print_all 
)

◆ delete_longjmp_breakpoint_cleanup()

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().

◆ detach_command()

void detach_command ( const char *  args,
int  from_tty 
)

◆ disconnect_command()

static void disconnect_command ( const char *  args,
int  from_tty 
)
static

◆ ensure_not_running()

static void ensure_not_running ( void  )
static

◆ ensure_not_tfind_mode()

static void ensure_not_tfind_mode ( void  )
static

◆ ensure_valid_thread()

static void ensure_valid_thread ( void  )
static

◆ environment_info()

static void environment_info ( const char *  var,
int  from_tty 
)
static

◆ error_is_running()

static void error_is_running ( void  )
static

Definition at line 759 of file infcmd.c.

References _, and error().

Referenced by ensure_not_running().

◆ finish_backward()

static void finish_backward ( struct finish_command_fsm sm)
static

◆ finish_command()

static void finish_command ( const char *  arg,
int  from_tty 
)
static

◆ finish_command_fsm_async_reply_reason()

static enum async_reply_reason finish_command_fsm_async_reply_reason ( struct thread_fsm self)
static

◆ finish_command_fsm_clean_up()

static void finish_command_fsm_clean_up ( struct thread_fsm self,
struct thread_info thread 
)
static

◆ finish_command_fsm_return_value()

static struct return_value_info * finish_command_fsm_return_value ( struct thread_fsm self)
static

Definition at line 1852 of file infcmd.c.

References finish_command_fsm::return_value.

◆ finish_command_fsm_should_stop()

static int finish_command_fsm_should_stop ( struct thread_fsm self,
struct thread_info thread 
)
static

◆ finish_forward()

static void finish_forward ( struct finish_command_fsm sm,
struct frame_info frame 
)
static

◆ get_inferior_args()

char* get_inferior_args ( void  )

◆ get_inferior_cwd()

const char* get_inferior_cwd ( )

◆ get_inferior_io_terminal()

const char* get_inferior_io_terminal ( void  )

◆ get_return_value()

struct value* get_return_value ( struct value function,
struct type value_type 
)

◆ info_all_registers_command()

static void info_all_registers_command ( const char *  addr_exp,
int  from_tty 
)
static

Definition at line 2518 of file infcmd.c.

References registers_info().

Referenced by _initialize_infcmd().

◆ info_float_command()

static void info_float_command ( const char *  args,
int  from_tty 
)
static

◆ info_proc_cmd()

static void info_proc_cmd ( const char *  args,
int  from_tty 
)
static

Definition at line 3138 of file infcmd.c.

References info_proc_cmd_1(), and IP_MINIMAL.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_1()

static void info_proc_cmd_1 ( const char *  args,
enum info_proc_what  what,
int  from_tty 
)
static

◆ info_proc_cmd_all()

static void info_proc_cmd_all ( const char *  args,
int  from_tty 
)
static

Definition at line 3194 of file infcmd.c.

References info_proc_cmd_1(), and IP_ALL.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_cmdline()

static void info_proc_cmd_cmdline ( const char *  args,
int  from_tty 
)
static

Definition at line 3178 of file infcmd.c.

References info_proc_cmd_1(), and IP_CMDLINE.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_cwd()

static void info_proc_cmd_cwd ( const char *  args,
int  from_tty 
)
static

Definition at line 3170 of file infcmd.c.

References info_proc_cmd_1(), and IP_CWD.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_exe()

static void info_proc_cmd_exe ( const char *  args,
int  from_tty 
)
static

Definition at line 3186 of file infcmd.c.

References info_proc_cmd_1(), and IP_EXE.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_mappings()

static void info_proc_cmd_mappings ( const char *  args,
int  from_tty 
)
static

Definition at line 3146 of file infcmd.c.

References info_proc_cmd_1(), and IP_MAPPINGS.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_stat()

static void info_proc_cmd_stat ( const char *  args,
int  from_tty 
)
static

Definition at line 3154 of file infcmd.c.

References info_proc_cmd_1(), and IP_STAT.

Referenced by _initialize_infcmd().

◆ info_proc_cmd_status()

static void info_proc_cmd_status ( const char *  args,
int  from_tty 
)
static

Definition at line 3162 of file infcmd.c.

References info_proc_cmd_1(), and IP_STATUS.

Referenced by _initialize_infcmd().

◆ info_program_command()

static void info_program_command ( const char *  args,
int  from_tty 
)
static

◆ info_registers_command()

static void info_registers_command ( const char *  addr_exp,
int  from_tty 
)
static

Definition at line 2524 of file infcmd.c.

References registers_info().

Referenced by _initialize_infcmd().

◆ info_vector_command()

static void info_vector_command ( const char *  args,
int  from_tty 
)
static

Definition at line 2559 of file infcmd.c.

References _, error(), gdb_stdout, get_selected_frame(), print_vector_info(), and target_has_registers.

Referenced by _initialize_infcmd().

◆ interrupt_command()

static void interrupt_command ( const char *  args,
int  from_tty 
)
static

◆ interrupt_target_1()

void interrupt_target_1 ( int  all_threads)

◆ jump_command()

static void jump_command ( const char *  arg,
int  from_tty 
)
static

◆ kill_command()

static void kill_command ( const char *  arg,
int  from_tty 
)
static

◆ kill_if_already_running()

static void kill_if_already_running ( int  from_tty)
static

◆ new_finish_command_fsm()

static struct finish_command_fsm* new_finish_command_fsm ( struct interp cmd_interp)
static

Definition at line 1777 of file infcmd.c.

References finish_command_fsm_ops, finish_command_fsm::thread_fsm, thread_fsm_ctor(), and XCNEW.

Referenced by finish_command().

◆ new_step_command_fsm()

static struct step_command_fsm* new_step_command_fsm ( struct interp cmd_interp)
static

Definition at line 1000 of file infcmd.c.

References step_command_fsm_ops, step_command_fsm::thread_fsm, thread_fsm_ctor(), and XCNEW.

Referenced by step_1().

◆ new_until_next_fsm()

static struct until_next_fsm* new_until_next_fsm ( struct interp cmd_interp,
int  thread 
)
static

◆ next_command()

static void next_command ( const char *  count_string,
int  from_tty 
)
static

Definition at line 935 of file infcmd.c.

References step_1().

Referenced by _initialize_infcmd().

◆ nexti_command()

static void nexti_command ( const char *  count_string,
int  from_tty 
)
static

Definition at line 949 of file infcmd.c.

References step_1().

Referenced by _initialize_infcmd().

◆ notice_new_inferior()

void notice_new_inferior ( ptid_t  ptid,
int  leave_running,
int  from_tty 
)

◆ path_command()

static void path_command ( const char *  dirname,
int  from_tty 
)
static

◆ path_info()

static void path_info ( const char *  args,
int  from_tty 
)
static

Definition at line 2257 of file infcmd.c.

References current_inferior(), path_var_name, and puts_filtered().

Referenced by _initialize_infcmd(), and path_command().

◆ post_create_inferior()

void post_create_inferior ( struct target_ops target,
int  from_tty 
)

◆ prepare_execution_command()

void prepare_execution_command ( struct target_ops target,
int  background 
)

◆ prepare_one_step()

static int prepare_one_step ( struct step_command_fsm sm)
static

◆ print_return_value()

void print_return_value ( struct ui_out uiout,
struct return_value_info rv 
)

◆ print_return_value_1()

static void print_return_value_1 ( struct ui_out uiout,
struct return_value_info rv 
)
static

◆ print_vector_info()

static void print_vector_info ( struct ui_file file,
struct frame_info frame,
const char *  args 
)
static

◆ proceed_after_attach()

static void proceed_after_attach ( int  pid)
static

Definition at line 2626 of file infcmd.c.

References iterate_over_threads(), pid, and proceed_after_attach_callback().

Referenced by attach_post_wait().

◆ proceed_after_attach_callback()

static int proceed_after_attach_callback ( struct thread_info thread,
void *  arg 
)
static

◆ proceed_thread_callback()

static int proceed_thread_callback ( struct thread_info thread,
void *  arg 
)
static

Definition at line 717 of file infcmd.c.

References clear_proceed_status(), is_stopped(), proceed(), thread_info::ptid, and switch_to_thread().

Referenced by continue_1().

◆ queue_signal_command()

static void queue_signal_command ( const char *  signum_exp,
int  from_tty 
)
static

◆ registers_info()

void registers_info ( const char *  addr_exp,
int  fpregs 
)

◆ run_command()

static void run_command ( const char *  args,
int  from_tty 
)
static

Definition at line 686 of file infcmd.c.

References run_command_1(), and RUN_NORMAL.

Referenced by _initialize_infcmd().

◆ run_command_1()

static void run_command_1 ( const char *  args,
int  from_tty,
enum run_how  run_how 
)
static

◆ set_args_command()

static void set_args_command ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 201 of file infcmd.c.

References inferior_args_scratch, and set_inferior_args().

Referenced by _initialize_infcmd().

◆ set_cwd_command()

static void set_cwd_command ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 245 of file infcmd.c.

References inferior_cwd_scratch, and set_inferior_cwd().

Referenced by _initialize_infcmd().

◆ set_environment_command()

static void set_environment_command ( const char *  arg,
int  from_tty 
)
static

◆ set_inferior_args()

void set_inferior_args ( const char *  newargs)

◆ set_inferior_args_vector()

void set_inferior_args_vector ( int  argc,
char **  argv 
)

Definition at line 192 of file infcmd.c.

References inferior::argc, gdb::argv, inferior::argv, and current_inferior().

Referenced by captured_main_1().

◆ set_inferior_cwd()

void set_inferior_cwd ( const char *  cwd)

Definition at line 222 of file infcmd.c.

References current_inferior(), inferior::cwd, and gdb_assert.

Referenced by set_cwd_command().

◆ set_inferior_io_terminal()

void set_inferior_io_terminal ( const char *  terminal_name)

◆ set_inferior_tty_command()

static void set_inferior_tty_command ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 137 of file infcmd.c.

References inferior_io_terminal_scratch, and set_inferior_io_terminal().

Referenced by _initialize_infcmd().

◆ set_step_frame()

static void set_step_frame ( void  )
static

◆ setup_inferior()

void setup_inferior ( int  from_tty)

◆ show_args_command()

static void show_args_command ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 211 of file infcmd.c.

References deprecated_show_value_hack, and get_inferior_args().

Referenced by _initialize_infcmd().

◆ show_cwd_command()

static void show_cwd_command ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 256 of file infcmd.c.

References _, inferior::cwd, fprintf_filtered(), gdb_stdout, and get_inferior_cwd().

Referenced by _initialize_infcmd().

◆ show_inferior_tty_command()

static void show_inferior_tty_command ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 146 of file infcmd.c.

References _, fprintf_filtered(), gdb_stdout, and get_inferior_io_terminal().

Referenced by _initialize_infcmd().

◆ signal_command()

static void signal_command ( const char *  signum_exp,
int  from_tty 
)
static

◆ skip_finish_frames()

static struct frame_info* skip_finish_frames ( struct frame_info frame)
static

Definition at line 1954 of file infcmd.c.

References skip_tailcall_frames(), and skip_unwritable_frames().

Referenced by finish_command().

◆ start_command()

static void start_command ( const char *  args,
int  from_tty 
)
static

Definition at line 695 of file infcmd.c.

References _, error(), have_minimal_symbols(), run_command_1(), and RUN_STOP_AT_MAIN.

Referenced by _initialize_infcmd().

◆ starti_command()

static void starti_command ( const char *  args,
int  from_tty 
)
static

Definition at line 711 of file infcmd.c.

References run_command_1(), and RUN_STOP_AT_FIRST_INSN.

Referenced by _initialize_infcmd().

◆ step_1()

static void step_1 ( int  skip_subroutines,
int  single_inst,
const char *  count_string 
)
static

◆ step_command()

static void step_command ( const char *  count_string,
int  from_tty 
)
static

Definition at line 927 of file infcmd.c.

References step_1().

Referenced by _initialize_infcmd().

◆ step_command_fsm_async_reply_reason()

static enum async_reply_reason step_command_fsm_async_reply_reason ( struct thread_fsm self)
static

Definition at line 1122 of file infcmd.c.

References EXEC_ASYNC_END_STEPPING_RANGE.

◆ step_command_fsm_clean_up()

static void step_command_fsm_clean_up ( struct thread_fsm self,
struct thread_info thread 
)
static

◆ step_command_fsm_prepare()

static void step_command_fsm_prepare ( struct step_command_fsm sm,
int  skip_subroutines,
int  single_inst,
int  count,
struct thread_info thread 
)
static

◆ step_command_fsm_should_stop()

static int step_command_fsm_should_stop ( struct thread_fsm self,
struct thread_info thread 
)
static

◆ stepi_command()

static void stepi_command ( const char *  count_string,
int  from_tty 
)
static

Definition at line 943 of file infcmd.c.

References step_1().

Referenced by _initialize_infcmd().

◆ strip_bg_char()

static gdb::unique_xmalloc_ptr<char> strip_bg_char ( const char *  args,
int *  bg_char_p 
)
static

◆ unset_command()

static void unset_command ( const char *  args,
int  from_tty 
)
static

Definition at line 3112 of file infcmd.c.

References _, all_commands, gdb_stdout, help_list(), printf_filtered(), and unsetlist.

Referenced by _initialize_infcmd().

◆ unset_environment_command()

static void unset_environment_command ( const char *  var,
int  from_tty 
)
static

◆ until_command()

static void until_command ( const char *  arg,
int  from_tty 
)
static

◆ until_next_command()

static void until_next_command ( int  from_tty)
static

◆ until_next_fsm_async_reply_reason()

static enum async_reply_reason until_next_fsm_async_reply_reason ( struct thread_fsm self)
static

Definition at line 1506 of file infcmd.c.

References EXEC_ASYNC_END_STEPPING_RANGE.

◆ until_next_fsm_clean_up()

static void until_next_fsm_clean_up ( struct thread_fsm self,
struct thread_info thread 
)
static

Definition at line 1497 of file infcmd.c.

References delete_longjmp_breakpoint(), and until_next_fsm::thread.

◆ until_next_fsm_should_stop()

static int until_next_fsm_should_stop ( struct thread_fsm self,
struct thread_info thread 
)
static

Variable Documentation

◆ finish_command_fsm_ops

struct thread_fsm_ops finish_command_fsm_ops
static
Initial value:
=
{
NULL,
NULL,
}
static enum async_reply_reason finish_command_fsm_async_reply_reason(struct thread_fsm *self)
Definition: infcmd.c:1863
static int finish_command_fsm_should_stop(struct thread_fsm *self, struct thread_info *thread)
Definition: infcmd.c:1793
static void finish_command_fsm_clean_up(struct thread_fsm *self, struct thread_info *thread)
Definition: infcmd.c:1835
static struct return_value_info * finish_command_fsm_return_value(struct thread_fsm *self)
Definition: infcmd.c:1852

Definition at line 1764 of file infcmd.c.

Referenced by new_finish_command_fsm().

◆ inferior_args_scratch

char* inferior_args_scratch
static

Definition at line 78 of file infcmd.c.

Referenced by _initialize_infcmd(), and set_args_command().

◆ inferior_cwd_scratch

char* inferior_cwd_scratch
static

Definition at line 82 of file infcmd.c.

Referenced by _initialize_infcmd(), and set_cwd_command().

◆ inferior_io_terminal_scratch

char* inferior_io_terminal_scratch
static

Definition at line 87 of file infcmd.c.

Referenced by _initialize_infcmd(), and set_inferior_tty_command().

◆ inferior_ptid

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().

◆ path_var_name

const char path_var_name[] = "PATH"
static

Definition at line 2254 of file infcmd.c.

Referenced by path_command(), and path_info().

◆ startup_with_shell

int startup_with_shell = 1

◆ step_command_fsm_ops

struct thread_fsm_ops step_command_fsm_ops
static
Initial value:
=
{
NULL,
NULL,
}
static enum async_reply_reason step_command_fsm_async_reply_reason(struct thread_fsm *self)
Definition: infcmd.c:1122
static int step_command_fsm_should_stop(struct thread_fsm *self, struct thread_info *thread)
Definition: infcmd.c:1090
static void step_command_fsm_clean_up(struct thread_fsm *self, struct thread_info *thread)
Definition: infcmd.c:1110

Definition at line 988 of file infcmd.c.

Referenced by new_step_command_fsm().

◆ stop_pc

CORE_ADDR stop_pc

◆ stop_stack_dummy

enum stop_stack_kind stop_stack_dummy

◆ stopped_by_random_signal

int stopped_by_random_signal

◆ until_next_fsm_ops

struct thread_fsm_ops until_next_fsm_ops
static
Initial value:
=
{
NULL,
NULL,
}
static enum async_reply_reason until_next_fsm_async_reply_reason(struct thread_fsm *self)
Definition: infcmd.c:1506
static void until_next_fsm_clean_up(struct thread_fsm *self, struct thread_info *thread)
Definition: infcmd.c:1497
static int until_next_fsm_should_stop(struct thread_fsm *self, struct thread_info *thread)
Definition: infcmd.c:1484

Definition at line 1456 of file infcmd.c.

Referenced by new_until_next_fsm().