GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-8.1/gdb/top.c File Reference
#include "defs.h"
#include "gdbcmd.h"
#include "cli/cli-cmds.h"
#include "cli/cli-script.h"
#include "cli/cli-setshow.h"
#include "cli/cli-decode.h"
#include "symtab.h"
#include "inferior.h"
#include "infrun.h"
#include <signal.h>
#include "target.h"
#include "target-dcache.h"
#include "breakpoint.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "language.h"
#include "terminal.h"
#include "job-control.h"
#include "annotate.h"
#include "completer.h"
#include "top.h"
#include "version.h"
#include "serial.h"
#include "main.h"
#include "event-loop.h"
#include "gdbthread.h"
#include "extension.h"
#include "interps.h"
#include "observer.h"
#include "maint.h"
#include "filenames.h"
#include "frame.h"
#include "buffer.h"
#include "gdb_select.h"
#include "readline/readline.h"
#include "readline/history.h"
#include <sys/types.h>
#include "event-top.h"
#include <sys/stat.h>
#include <ctype.h>
#include "ui-out.h"
#include "cli-out.h"
#include "tracepoint.h"
#include "inf-loop.h"

Go to the source code of this file.

Classes

struct  gdb_readline_wrapper_cleanup
 
struct  qt_args
 

Macros

#define O_NOCTTY   0
 
#define PROMPT(X)   the_prompts.prompt_stack[the_prompts.top + X].prompt
 
#define PREFIX(X)   the_prompts.prompt_stack[the_prompts.top + X].prefix
 
#define SUFFIX(X)   the_prompts.prompt_stack[the_prompts.top + X].suffix
 
#define DEFAULT_PROMPT   "(gdb) "
 
#define gen_ret_current_ui_field_ptr(type, name)
 
#define Hist_print   10
 

Functions

void initialize_all_files (void)
 
 gen_ret_current_ui_field_ptr (struct ui_file *, gdb_stdout)
 
static gdb_file_up open_terminal_stream (const char *name)
 
static void new_ui_command (const char *args, int from_tty)
 
void read_command_file (FILE *stream)
 
scoped_value_mark prepare_execute_command ()
 
void check_frame_language_change (void)
 
void wait_sync_command_done (void)
 
void maybe_wait_sync_command_done (int was_sync)
 
void set_repeat_arguments (const char *args)
 
void execute_command (const char *p, int from_tty)
 
std::string execute_command_to_string (const char *p, int from_tty)
 
void dont_repeat (void)
 
scoped_restore_tmpl< int > prevent_dont_repeat (void)
 
static char * gdb_readline_no_editing (const char *prompt)
 
static void show_write_history_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_history_size (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_history_remove_duplicates (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_history_filename (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
int gdb_in_secondary_prompt_p (struct ui *ui)
 
static void gdb_readline_wrapper_line (char *line)
 
static void gdb_readline_wrapper_cleanup (void *arg)
 
char * gdb_readline_wrapper (const char *prompt)
 
static void gdb_rl_operate_and_get_next_completion (void)
 
static int gdb_rl_operate_and_get_next (int count, int key)
 
void gdb_add_history (const char *command)
 
static void gdb_safe_append_history (void)
 
char * command_line_input (const char *prompt_arg, int repeat, const char *annotation_suffix)
 
void print_gdb_version (struct ui_file *stream)
 
void print_gdb_configuration (struct ui_file *stream)
 
char * get_prompt (void)
 
void set_prompt (const char *s)
 
static int kill_or_detach (struct inferior *inf, void *args)
 
static int print_inferior_quit_action (struct inferior *inf, void *arg)
 
int quit_confirm (void)
 
static void undo_terminal_modifications_before_exit (void)
 
void quit_force (int *exit_arg, int from_tty)
 
static void show_interactive_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
int input_interactive_p (struct ui *ui)
 
static void dont_repeat_command (const char *ignored, int from_tty)
 
void show_commands (const char *args, int from_tty)
 
static void set_readline_history_size (int history_size)
 
static void set_history_size_command (const char *args, int from_tty, struct cmd_list_element *c)
 
void set_history (const char *args, int from_tty)
 
void show_history (const char *args, int from_tty)
 
void set_verbose (const char *args, int from_tty, struct cmd_list_element *c)
 
void init_history (void)
 
static void show_prompt (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void set_editing (const char *args, int from_tty, struct cmd_list_element *c)
 
static void show_editing (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_annotation_level (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_exec_done_display_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void set_gdb_datadir (const char *args, int from_tty, struct cmd_list_element *c)
 
static void show_gdb_datadir (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void set_history_filename (const char *args, int from_tty, struct cmd_list_element *c)
 
static void init_main (void)
 
void gdb_init (char *argv0)
 

Variables

char * current_directory
 
char * saved_command_line
 
int server_command
 
int remote_timeout = 2
 
int remote_debug = 0
 
char * lim_at_start
 
int(* deprecated_ui_loop_hook )(int)
 
void(* deprecated_print_frame_info_listing_hook )(struct symtab *s, int line, int stopline, int noerror)
 
int(* deprecated_query_hook )(const char *, va_list)
 
void(* deprecated_warning_hook )(const char *, va_list)
 
void(* deprecated_readline_begin_hook )(const char *,...)
 
char *(* deprecated_readline_hook )(const char *)
 
void(* deprecated_readline_end_hook )(void)
 
void(* deprecated_attach_hook )(void)
 
void(* deprecated_detach_hook )(void)
 
void(* deprecated_interactive_hook )(void)
 
ptid_t(* deprecated_target_wait_hook )(ptid_t ptid, struct target_waitstatus *status, int options)
 
void(* deprecated_call_command_hook )(struct cmd_list_element *c, const char *cmd, int from_tty)
 
void(* deprecated_context_hook )(int id)
 
static int highest_ui_num
 
int source_line_number
 
const char * source_file_name
 
void(* pre_init_ui_hook )(void)
 
static const char * repeat_arguments
 
static int suppress_dont_repeat = 0
 
static int command_editing_p
 
int history_expansion_p
 
static int write_history_p
 
static int history_size_setshow_var = -2
 
static int history_remove_duplicates = 0
 
static char * history_filename
 
static int gdb_readline_wrapper_done
 
static char * gdb_readline_wrapper_result
 
static void(* saved_after_char_processing_hook )(void)
 
static int operate_saved_history = -1
 
static int command_count = 0
 
static char * top_prompt
 
static enum auto_boolean interactive_mode = AUTO_BOOLEAN_AUTO
 
int info_verbose = 0
 
static char * staged_gdb_datadir
 

Macro Definition Documentation

◆ DEFAULT_PROMPT

#define DEFAULT_PROMPT   "(gdb) "

Definition at line 90 of file top.c.

Referenced by init_main().

◆ gen_ret_current_ui_field_ptr

#define gen_ret_current_ui_field_ptr (   type,
  name 
)
Value:
type * \
current_ui_## name ## _ptr (void) \
{ \
return &current_ui->m_ ## name; \
}
struct ui * current_ui
Definition: event-top.c:453
const char *const name
Definition: aarch64-tdep.c:76
Definition: gdbtypes.h:749

Definition at line 96 of file top.c.

◆ Hist_print

#define Hist_print   10

Definition at line 1695 of file top.c.

Referenced by show_commands().

◆ O_NOCTTY

#define O_NOCTTY   0

Definition at line 78 of file top.c.

Referenced by open_terminal_stream().

◆ PREFIX

#define PREFIX (   X)    the_prompts.prompt_stack[the_prompts.top + X].prefix

Definition at line 84 of file top.c.

◆ PROMPT

#define PROMPT (   X)    the_prompts.prompt_stack[the_prompts.top + X].prompt

Definition at line 83 of file top.c.

◆ SUFFIX

#define SUFFIX (   X)    the_prompts.prompt_stack[the_prompts.top + X].suffix

Definition at line 85 of file top.c.

Function Documentation

◆ check_frame_language_change()

void check_frame_language_change ( void  )

◆ command_line_input()

char* command_line_input ( const char *  prompt_arg,
int  repeat,
const char *  annotation_suffix 
)

◆ dont_repeat()

void dont_repeat ( void  )

◆ dont_repeat_command()

static void dont_repeat_command ( const char *  ignored,
int  from_tty 
)
static

Definition at line 1685 of file top.c.

References saved_command_line.

Referenced by init_main().

◆ execute_command()

void execute_command ( const char *  p,
int  from_tty 
)

◆ execute_command_to_string()

std::string execute_command_to_string ( const char *  p,
int  from_tty 
)

◆ gdb_add_history()

void gdb_add_history ( const char *  command)

Definition at line 1067 of file top.c.

References command_count, and history_remove_duplicates.

Referenced by handle_line_of_input().

◆ gdb_in_secondary_prompt_p()

int gdb_in_secondary_prompt_p ( struct ui ui)

◆ gdb_init()

void gdb_init ( char *  argv0)

◆ gdb_readline_no_editing()

static char* gdb_readline_no_editing ( const char *  prompt)
static

◆ gdb_readline_wrapper()

char* gdb_readline_wrapper ( const char *  prompt)

◆ gdb_readline_wrapper_cleanup()

static void gdb_readline_wrapper_cleanup ( void *  arg)
static

◆ gdb_readline_wrapper_line()

static void gdb_readline_wrapper_line ( char *  line)
static

◆ gdb_rl_operate_and_get_next()

static int gdb_rl_operate_and_get_next ( int  count,
int  key 
)
static

◆ gdb_rl_operate_and_get_next_completion()

static void gdb_rl_operate_and_get_next_completion ( void  )
static

Definition at line 1020 of file top.c.

References after_char_processing_hook, and operate_saved_history.

Referenced by gdb_rl_operate_and_get_next().

◆ gdb_safe_append_history()

static void gdb_safe_append_history ( void  )
static

Definition at line 1112 of file top.c.

References _, command_count, gdb_assert, history_filename, safe_strerror(), string, string_printf(), and warning().

Referenced by quit_force().

◆ gen_ret_current_ui_field_ptr()

gen_ret_current_ui_field_ptr ( struct ui_file ,
gdb_stdout   
)

Definition at line 103 of file top.c.

References _, and fprintf_filtered().

◆ get_prompt()

char* get_prompt ( void  )

Definition at line 1445 of file top.c.

References top_prompt.

Referenced by top_level_prompt().

◆ init_history()

void init_history ( void  )

◆ init_main()

static void init_main ( void  )
static

◆ initialize_all_files()

void initialize_all_files ( void  )

Definition at line 165 of file init.c.

References _initialize_ada_exp, _initialize_ada_language, _initialize_addrmap, _initialize_agent, _initialize_amd64_linux_nat, _initialize_amd64_linux_tdep, _initialize_amd64_tdep, _initialize_annotate, _initialize_auto_load, _initialize_auxv, _initialize_ax_gdb, _initialize_break_catch_sig, _initialize_break_catch_syscall, _initialize_break_catch_throw, _initialize_breakpoint, _initialize_btrace, _initialize_charset, _initialize_cli_cmds, _initialize_cli_dump, _initialize_cli_interp, _initialize_cli_logging, _initialize_cli_script, _initialize_coff_pe_read, _initialize_coffread, _initialize_compile, _initialize_complaints, _initialize_completer, _initialize_copying, _initialize_core, _initialize_corelow, _initialize_cp_abi, _initialize_cp_namespace, _initialize_cp_support, _initialize_cp_valprint, _initialize_ctf, _initialize_d_language, _initialize_dbxread, _initialize_dcache, _initialize_demangler, _initialize_disasm, _initialize_disasm_selftests, _initialize_dtrace_probe, _initialize_dummy_frame, _initialize_dwarf2_frame, _initialize_dwarf2_read, _initialize_dwarf2expr, _initialize_dwarf2loc, _initialize_elfread, _initialize_exec, _initialize_extension, _initialize_f_language, _initialize_f_valprint, _initialize_filesystem, _initialize_findvar, _initialize_fork_child, _initialize_frame, _initialize_frame_base, _initialize_frame_reg, _initialize_frame_unwind, _initialize_gcore, _initialize_gdb_bfd, _initialize_gdb_osabi, _initialize_gdbarch, _initialize_gdbarch_selftests, _initialize_gdbarch_utils, _initialize_gdbtypes, _initialize_gnu_v2_abi, _initialize_gnu_v3_abi, _initialize_go_language, _initialize_guile, _initialize_i386_linux_tdep, _initialize_i386_tdep, _initialize_infcall, _initialize_infcmd, _initialize_inflow, _initialize_infrun, _initialize_interpreter, _initialize_jit, _initialize_language, _initialize_linux_fork, _initialize_linux_nat, _initialize_linux_tdep, _initialize_m2_language, _initialize_macrocmd, _initialize_macroscope, _initialize_maint_cmds, _initialize_mdebugread, _initialize_mem, _initialize_mem_search, _initialize_mi_cmd_env, _initialize_mi_cmds, _initialize_mi_interp, _initialize_mi_main, _initialize_mipsread, _initialize_notif, _initialize_objc_lang, _initialize_objc_language, _initialize_objfiles, _initialize_observer, _initialize_opencl_language, _initialize_osdata, _initialize_parse, _initialize_pascal_valprint, _initialize_printcmd, _initialize_probe, _initialize_proc_service, _initialize_producer, _initialize_psymtab, _initialize_python, _initialize_record, _initialize_record_btrace, _initialize_record_full, _initialize_regcache, _initialize_reggroup, _initialize_remote, _initialize_reverse, _initialize_rust_exp, _initialize_ser_hardwire, _initialize_ser_pipe, _initialize_ser_tcp, _initialize_serial, _initialize_solib, _initialize_solib_target, _initialize_source, _initialize_stabsread, _initialize_stack, _initialize_stap_probe, _initialize_step_skip, _initialize_svr4_solib, _initialize_symfile, _initialize_symfile_debug, _initialize_symfile_mem, _initialize_symmisc, _initialize_symtab, _initialize_tailcall_frame, _initialize_target_dcache, _initialize_target_descriptions, _initialize_tasks, _initialize_thread, _initialize_thread_db, _initialize_tracefile, _initialize_tracefile_tfile, _initialize_tracepoint, _initialize_tui, _initialize_tui_hooks, _initialize_tui_interp, _initialize_tui_layout, _initialize_tui_regs, _initialize_tui_stack, _initialize_tui_win, _initialize_typeprint, _initialize_user_regs, _initialize_utils, _initialize_valarith, _initialize_valops, _initialize_valprint, _initialize_values, _initialize_varobj, and _initialize_xml_support.

Referenced by gdb_init().

◆ input_interactive_p()

int input_interactive_p ( struct ui ui)

◆ kill_or_detach()

static int kill_or_detach ( struct inferior inf,
void *  args 
)
static

◆ maybe_wait_sync_command_done()

void maybe_wait_sync_command_done ( int  was_sync)

◆ new_ui_command()

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

◆ open_terminal_stream()

static gdb_file_up open_terminal_stream ( const char *  name)
static

Definition at line 313 of file top.c.

References _, gdb_open_cloexec(), name, O_NOCTTY, and perror_with_name().

Referenced by new_ui_command().

◆ prepare_execute_command()

scoped_value_mark prepare_execute_command ( void  )

Definition at line 440 of file top.c.

References non_stop, and target_dcache_invalidate().

Referenced by execute_command(), and mi_cmd_execute().

◆ prevent_dont_repeat()

scoped_restore_tmpl<int> prevent_dont_repeat ( void  )

Definition at line 713 of file top.c.

References make_scoped_restore(), and suppress_dont_repeat.

Referenced by bpstat_do_actions_1(), and execute_gdb_command().

◆ print_gdb_configuration()

void print_gdb_configuration ( struct ui_file stream)

◆ print_gdb_version()

void print_gdb_version ( struct ui_file stream)

Definition at line 1284 of file top.c.

References _, fprintf_filtered(), host_name, PKGVERSION, REPORT_BUGS_TO, target_name, and version.

Referenced by captured_main_1(), and show_version().

◆ print_inferior_quit_action()

static int print_inferior_quit_action ( struct inferior inf,
void *  arg 
)
static

Definition at line 1503 of file top.c.

References _, fprintf_filtered(), inf::pid, pid_to_ptid(), and target_pid_to_str().

Referenced by quit_confirm().

◆ quit_confirm()

int quit_confirm ( void  )

◆ quit_force()

void quit_force ( int *  exit_arg,
int  from_tty 
)

◆ read_command_file()

void read_command_file ( FILE *  stream)

Definition at line 406 of file top.c.

References command_handler(), command_line_input(), current_ui, ui::instream, and make_scoped_restore().

Referenced by script_from_file().

◆ set_editing()

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

Definition at line 1895 of file top.c.

References change_line_handler(), ui::command_editing, current_ui, and set_editing_cmd_var.

Referenced by init_main().

◆ set_gdb_datadir()

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

Definition at line 1934 of file top.c.

References observer_notify_gdb_datadir_changed(), set_gdb_data_directory(), and staged_gdb_datadir.

Referenced by init_main().

◆ set_history()

void set_history ( const char *  args,
int  from_tty 
)

Definition at line 1778 of file top.c.

References _, all_commands, gdb_stdout, help_list(), printf_unfiltered(), and sethistlist.

Referenced by _initialize_cli_cmds().

◆ set_history_filename()

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

Definition at line 1951 of file top.c.

References current_directory, and history_filename.

Referenced by init_main().

◆ set_history_size_command()

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

Definition at line 1771 of file top.c.

References history_size_setshow_var, and set_readline_history_size().

Referenced by init_main().

◆ set_prompt()

void set_prompt ( const char *  s)

Definition at line 1453 of file top.c.

References top_prompt, and xfree().

Referenced by gdbpy_before_prompt_hook(), and init_main().

◆ set_readline_history_size()

static void set_readline_history_size ( int  history_size)
static

Definition at line 1759 of file top.c.

References gdb_assert.

Referenced by init_history(), and set_history_size_command().

◆ set_repeat_arguments()

void set_repeat_arguments ( const char *  args)

Definition at line 531 of file top.c.

References repeat_arguments.

Referenced by list_command(), show_commands(), show_values(), and x_command().

◆ set_verbose()

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

◆ show_annotation_level()

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

Definition at line 1913 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ show_commands()

void show_commands ( const char *  args,
int  from_tty 
)

◆ show_editing()

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

Definition at line 1904 of file top.c.

References _, ui::command_editing, current_ui, and fprintf_filtered().

Referenced by init_main().

◆ show_exec_done_display_p()

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

Definition at line 1920 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ show_gdb_datadir()

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

Definition at line 1943 of file top.c.

References _, fprintf_filtered(), and gdb_datadir.

Referenced by init_main().

◆ show_history()

void show_history ( const char *  args,
int  from_tty 
)

Definition at line 1786 of file top.c.

References cmd_show_list(), and showhistlist.

Referenced by _initialize_cli_cmds().

◆ show_history_filename()

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

Definition at line 845 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ show_history_remove_duplicates()

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

Definition at line 834 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ show_history_size()

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

Definition at line 822 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ show_interactive_mode()

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

Definition at line 1658 of file top.c.

References AUTO_BOOLEAN_AUTO, current_ui, fprintf_filtered(), input_interactive_p(), and interactive_mode.

Referenced by init_main().

◆ show_prompt()

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

Definition at line 1886 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ show_write_history_p()

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

Definition at line 810 of file top.c.

References _, and fprintf_filtered().

Referenced by init_main().

◆ undo_terminal_modifications_before_exit()

static void undo_terminal_modifications_before_exit ( void  )
static

Definition at line 1546 of file top.c.

References current_ui, gdb_disable_readline(), main_ui, target_terminal::ours(), and tui_disable().

Referenced by quit_force().

◆ wait_sync_command_done()

void wait_sync_command_done ( void  )

Variable Documentation

◆ command_count

int command_count = 0
static

Definition at line 1062 of file top.c.

Referenced by gdb_add_history(), and gdb_safe_append_history().

◆ command_editing_p

int command_editing_p
static

Definition at line 800 of file top.c.

Referenced by command_line_input(), and init_main().

◆ current_directory

char* current_directory

String containing the current directory (what getwd would return).

Definition at line 133 of file top.c.

Referenced by add_path(), bsd_kvm_open(), captured_main_1(), cd_command(), core_open(), gdb_abspath(), gdb_init(), go32_wait(), init_history(), openp(), pwd_command(), set_history_filename(), shell_escape(), and tfile_open().

◆ deprecated_attach_hook

void(* deprecated_attach_hook) (void)

Definition at line 221 of file top.c.

Referenced by attach_post_wait().

◆ deprecated_call_command_hook

void(* deprecated_call_command_hook) (struct cmd_list_element *c, const char *cmd, int from_tty)

Definition at line 239 of file top.c.

Referenced by clear_interpreter_hooks(), and execute_command().

◆ deprecated_context_hook

void(* deprecated_context_hook) (int id)

Definition at line 244 of file top.c.

Referenced by clear_interpreter_hooks(), and handle_signal_stop().

◆ deprecated_detach_hook

void(* deprecated_detach_hook) (void)

Definition at line 222 of file top.c.

Referenced by detach_command(), disconnect_command(), and generic_mourn_inferior().

◆ deprecated_interactive_hook

void(* deprecated_interactive_hook) (void)

Definition at line 227 of file top.c.

Referenced by clear_interpreter_hooks(), and maybe_quit().

◆ deprecated_print_frame_info_listing_hook

void(* deprecated_print_frame_info_listing_hook) (struct symtab *s, int line, int stopline, int noerror)

◆ deprecated_query_hook

int(* deprecated_query_hook) (const char *, va_list)

◆ deprecated_readline_begin_hook

void(* deprecated_readline_begin_hook) (const char *,...)

Definition at line 214 of file top.c.

Referenced by clear_interpreter_hooks(), and read_command_lines().

◆ deprecated_readline_end_hook

void(* deprecated_readline_end_hook) (void)

Definition at line 216 of file top.c.

Referenced by clear_interpreter_hooks(), and read_command_lines().

◆ deprecated_readline_hook

char*(* deprecated_readline_hook) (const char *)

Definition at line 215 of file top.c.

Referenced by clear_interpreter_hooks(), command_line_input(), and read_next_line().

◆ deprecated_target_wait_hook

ptid_t(* deprecated_target_wait_hook) (ptid_t ptid, struct target_waitstatus *status, int options)

Definition at line 232 of file top.c.

Referenced by clear_interpreter_hooks(), do_target_wait(), and wait_one().

◆ deprecated_ui_loop_hook

int(* deprecated_ui_loop_hook) (int)

Definition at line 185 of file top.c.

Referenced by do_ser_base_readchar(), gdb_os_poll_quit(), wait_for_connect(), and windows_wait().

◆ deprecated_warning_hook

void(* deprecated_warning_hook) (const char *, va_list)

Definition at line 200 of file top.c.

Referenced by clear_interpreter_hooks(), and vwarning().

◆ gdb_readline_wrapper_done

int gdb_readline_wrapper_done
static

◆ gdb_readline_wrapper_result

char* gdb_readline_wrapper_result
static

◆ highest_ui_num

int highest_ui_num
static

Definition at line 247 of file top.c.

◆ history_expansion_p

int history_expansion_p

Definition at line 806 of file top.c.

Referenced by _initialize_cli_cmds(), handle_line_of_input(), and init_main().

◆ history_filename

char* history_filename
static

◆ history_remove_duplicates

int history_remove_duplicates = 0
static

Definition at line 831 of file top.c.

Referenced by gdb_add_history(), and init_main().

◆ history_size_setshow_var

int history_size_setshow_var = -2
static

Definition at line 819 of file top.c.

Referenced by init_history(), init_main(), and set_history_size_command().

◆ info_verbose

int info_verbose = 0

◆ interactive_mode

enum auto_boolean interactive_mode = AUTO_BOOLEAN_AUTO
static

Definition at line 1653 of file top.c.

Referenced by init_main(), input_interactive_p(), and show_interactive_mode().

◆ lim_at_start

char* lim_at_start

◆ operate_saved_history

int operate_saved_history = -1
static

Definition at line 1015 of file top.c.

Referenced by gdb_rl_operate_and_get_next(), and gdb_rl_operate_and_get_next_completion().

◆ pre_init_ui_hook

void(* pre_init_ui_hook) (void)

Definition at line 428 of file top.c.

Referenced by gdb_init().

◆ remote_debug

int remote_debug = 0

◆ remote_timeout

int remote_timeout = 2

◆ repeat_arguments

const char* repeat_arguments
static

Definition at line 526 of file top.c.

Referenced by execute_command(), and set_repeat_arguments().

◆ saved_after_char_processing_hook

void(* saved_after_char_processing_hook) (void)
static

Definition at line 882 of file top.c.

Referenced by gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().

◆ saved_command_line

char* saved_command_line

◆ server_command

int server_command

Definition at line 145 of file top.c.

Referenced by ATTRIBUTE_PRINTF(), breakpoint_1(), dont_repeat(), and handle_line_of_input().

◆ source_file_name

const char* source_file_name

Definition at line 402 of file top.c.

Referenced by command_line_input(), and script_from_file().

◆ source_line_number

int source_line_number

Definition at line 396 of file top.c.

Referenced by command_line_input(), and script_from_file().

◆ staged_gdb_datadir

char* staged_gdb_datadir
static

Definition at line 1929 of file top.c.

Referenced by init_main(), and set_gdb_datadir().

◆ suppress_dont_repeat

int suppress_dont_repeat = 0
static

Definition at line 690 of file top.c.

Referenced by dont_repeat(), and prevent_dont_repeat().

◆ top_prompt

char* top_prompt
static

Definition at line 1440 of file top.c.

Referenced by get_prompt(), init_main(), and set_prompt().

◆ write_history_p

int write_history_p
static

Definition at line 808 of file top.c.

Referenced by init_main(), and quit_force().