GDB (xrefs)
|
#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 "annotate.h"
#include "completer.h"
#include "top.h"
#include "version.h"
#include "serial.h"
#include "doublest.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 "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 | 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 | SERVER_COMMAND_LENGTH 7 |
#define | Hist_print 10 |
Functions | |
void | initialize_all_files (void) |
static void | show_confirm (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | do_restore_instream_cleanup (void *stream) |
void | read_command_file (FILE *stream) |
struct cleanup * | prepare_execute_command (void) |
void | check_frame_language_change (void) |
void | maybe_wait_sync_command_done (int was_sync) |
void | execute_command (char *p, int from_tty) |
char * | execute_command_to_string (char *p, int from_tty) |
void | command_loop (void) |
void | dont_repeat (void) |
struct cleanup * | prevent_dont_repeat (void) |
char * | gdb_readline (const char *prompt_arg) |
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) |
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, 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) |
void | quit_force (char *args, int from_tty) |
int | input_from_terminal_p (void) |
static void | dont_repeat_command (char *ignored, int from_tty) |
void | show_commands (char *args, int from_tty) |
static void | set_readline_history_size (int history_size) |
static void | set_history_size_command (char *args, int from_tty, struct cmd_list_element *c) |
void | set_history (char *args, int from_tty) |
void | show_history (char *args, int from_tty) |
void | set_verbose (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 | show_async_command_editing_p (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 (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 (char *args, int from_tty, struct cmd_list_element *c) |
static void | init_main (void) |
void | gdb_init (char *argv0) |
#define DEFAULT_PROMPT "(gdb) " |
Definition at line 79 of file top.c.
Referenced by init_main().
#define Hist_print 10 |
Definition at line 1601 of file top.c.
Referenced by show_commands().
#define SERVER_COMMAND_LENGTH 7 |
Referenced by command_line_input().
void check_frame_language_change | ( | void | ) |
Definition at line 330 of file top.c.
References current_language, deprecated_safe_get_selected_frame(), expected_language, get_frame_language(), has_stack_frames(), info_verbose, language_defn::la_language, lang_frame_mismatch_warn, language_info(), language_mode_auto, language_unknown, and printf_filtered().
Referenced by execute_command(), and inferior_event_handler().
Definition at line 1024 of file top.c.
References annotation_level, command_editing_p, deprecated_readline_hook, gdb_add_history(), gdb_flush(), gdb_readline(), gdb_readline_wrapper(), gdb_stderr, gdb_stdout, history_expansion_p, immediate_quit, input_from_terminal_p(), instream, ISATTY, job_control, printf_unfiltered(), puts_unfiltered(), QUIT, saved_command_line, saved_command_line_size, server_command, SERVER_COMMAND_LENGTH, source_file_name, source_line_number, wrap_here(), xfree(), xmalloc(), and xrealloc().
Referenced by command_loop(), decode_line_2(), gdbpy_readline_wrapper(), get_selections(), and read_next_line().
void command_loop | ( | void | ) |
Definition at line 534 of file top.c.
References bpstat_do_actions(), clear_quit_flag(), command_line_input(), do_cleanups(), execute_command(), get_prompt(), instream, ISATTY, make_cleanup(), make_command_stats_cleanup(), null_cleanup(), reinitialize_more_filter(), and window_hook.
Referenced by read_command_file().
void do_restore_instream_cleanup | ( | void * | stream | ) |
Definition at line 278 of file top.c.
References instream.
Referenced by execute_user_command(), and read_command_file().
void dont_repeat | ( | void | ) |
Definition at line 582 of file top.c.
References instream, saved_command_line, server_command, and suppress_dont_repeat.
Referenced by add_symbol_file_command(), agent_command_1(), agent_eval_command_one(), attach_command(), auto_load_info_scripts(), cd_command(), cmd_record_call_history(), cmd_record_insn_history(), cmdpy_dont_repeat(), complete_command(), core_file_command(), delete_command(), delete_trace_command(), delete_trace_variable_command(), detach_command(), directory_command(), disconnect_command(), display_command(), gdbscm_dont_repeat(), interrupt_command(), line_info(), load_command(), maint_agent_printf_command(), maint_btrace_packet_history_cmd(), maintenance_info_symtabs(), maintenance_print_msymbols(), maintenance_print_objfiles(), maintenance_print_psymbols(), maintenance_print_symbols(), mem_delete_command(), mi_cmd_env_dir(), mi_cmd_env_path(), path_command(), prompt_for_continue(), python_interactive_command(), read_command_lines_1(), recurse_read_control_structure(), remove_symbol_file_command(), run_command_1(), save_bookmark_command(), sharedlibrary_command(), signal_command(), symbol_file_command(), target_preopen(), trace_start_command(), tui_rl_switch_mode(), and undisplay_command().
|
static |
void execute_command | ( | char * | p, |
int | from_tty | ||
) |
Definition at line 388 of file top.c.
References _, check_frame_language_change(), class_user, cmd_func(), cmd_func_p(), cmdlist, deprecated_call_command_hook, deprecated_cmd_warning(), cmd_list_element::deprecated_warn_user, discard_cleanups(), do_cleanups(), do_set_command(), do_show_command(), error(), execute_cmd_post_hook(), execute_cmd_pre_hook(), execute_user_command(), is_complete_command(), line, lookup_cmd(), make_bpstat_clear_actions_cleanup(), maybe_wait_sync_command_done(), prepare_execute_command(), print_command_trace(), set_cmd, show_cmd, sync_execution, target_log_command, cmd_list_element::theclass, cmd_list_element::type, and cmd_list_element::user_commands.
Referenced by captured_main(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmd_record_full_start(), cmd_record_start(), command_handler(), command_loop(), env_execute_cli_command(), eval_command(), exec_reverse_once(), execute_command_to_string(), execute_control_command(), execute_gdb_command(), mi_execute_async_cli_command(), mi_execute_cli_command(), mips_create_inferior(), nto_init_solib_absolute_prefix(), safe_execute_command(), thread_apply_all_command(), thread_apply_command(), and tui_update_command().
char* execute_command_to_string | ( | char * | p, |
int | from_tty | ||
) |
Definition at line 488 of file top.c.
References _, current_uiout, do_cleanups(), execute_command(), gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, interpreter_async, make_cleanup_restore_integer(), make_cleanup_restore_ui_file(), make_cleanup_ui_file_delete(), make_cleanup_ui_out_redirect_pop(), mem_fileopen(), set_batch_flag_and_make_cleanup_restore_page_info(), ui_file_xstrdup(), ui_out_redirect(), and warning().
Referenced by execute_gdb_command().
void gdb_add_history | ( | const char * | command | ) |
Definition at line 912 of file top.c.
References command_count, and history_remove_duplicates.
Referenced by command_line_handler(), and command_line_input().
void gdb_init | ( | char * | argv0 | ) |
Definition at line 1991 of file top.c.
References async_init_signals(), current_directory, current_language, expected_language, finish_ext_lang_initialization(), init_cli_cmds(), init_cmd_lists(), init_main(), init_page_info(), initialize_all_files(), initialize_current_architecture(), initialize_inferiors(), initialize_progspace(), initialize_stdin_serial(), initialize_targets(), initialize_utils(), language_c, make_final_cleanup(), pre_init_ui_hook, set_initial_gdb_ttystate(), and set_language().
Referenced by captured_main().
char* gdb_readline | ( | const char * | prompt_arg | ) |
Definition at line 615 of file top.c.
References fputs_unfiltered(), gdb_flush(), gdb_stdout, instream, xfree(), xmalloc(), and xrealloc().
Referenced by command_line_input().
char* gdb_readline_wrapper | ( | const char * | prompt | ) |
Definition at line 821 of file top.c.
References after_char_processing_hook, gdb_readline_wrapper_cleanup::already_prompted_orig, display_gdb_prompt(), do_cleanups(), gdb_assert, gdb_do_one_event(), gdb_readline_wrapper_done, gdb_readline_wrapper_line(), gdb_readline_wrapper_result, gdb_readline_wrapper_cleanup::handler_orig, input_handler, make_cleanup(), target_async, gdb_readline_wrapper_cleanup::target_is_async_orig, target_is_async_p, and xmalloc().
Referenced by ATTRIBUTE_PRINTF(), command_line_input(), and prompt_for_continue().
|
static |
Definition at line 792 of file top.c.
References after_char_processing_hook, gdb_readline_wrapper_cleanup::already_prompted_orig, gdb_assert, gdb_readline_wrapper_done, gdb_readline_wrapper_line(), gdb_readline_wrapper_result, gdb_readline_wrapper_cleanup::handler_orig, input_handler, saved_after_char_processing_hook, target_async, gdb_readline_wrapper_cleanup::target_is_async_orig, and xfree().
|
static |
Definition at line 760 of file top.c.
References after_char_processing_hook, async_command_editing_p, gdb_assert, gdb_readline_wrapper_done, gdb_readline_wrapper_result, gdb_rl_callback_handler_remove(), line, and saved_after_char_processing_hook.
Referenced by gdb_readline_wrapper(), and gdb_readline_wrapper_cleanup().
Definition at line 886 of file top.c.
References after_char_processing_hook, gdb_rl_operate_and_get_next_completion(), and operate_saved_history.
Referenced by init_main().
|
static |
Definition at line 865 of file top.c.
References after_char_processing_hook, and operate_saved_history.
Referenced by gdb_rl_operate_and_get_next().
|
static |
Definition at line 957 of file top.c.
References _, command_count, do_cleanups(), gdb_assert, history_filename, make_cleanup(), safe_strerror(), warning(), xfree(), and xstrprintf().
Referenced by quit_force().
char* get_prompt | ( | void | ) |
Definition at line 1386 of file top.c.
References top_prompt.
Referenced by command_loop(), and top_level_prompt().
void init_history | ( | void | ) |
Definition at line 1729 of file top.c.
References current_directory, history_filename, history_size_setshow_var, INT_MAX, set_readline_history_size(), skip_spaces(), and cmd_list_element::var.
Referenced by captured_main().
|
static |
Definition at line 1859 of file top.c.
References _, add_com(), add_setshow_boolean_cmd(), add_setshow_filename_cmd(), add_setshow_string_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), annotation_level, async_annotation_suffix, async_command_editing_p, class_maintenance, class_obscure, class_support, cli_display_match_list(), command_editing_p, confirm, DEFAULT_PROMPT, default_word_break_characters(), dont_repeat_command(), exec_done_display_p, gdb_completion_word_break_characters(), gdb_rl_operate_and_get_next(), get_gdb_completer_quote_characters(), history_expansion_p, history_filename, history_remove_duplicates, history_size_setshow_var, no_class, readline_line_completion_function(), set_async_editing_command(), set_gdb_datadir(), set_history_filename(), set_history_size_command(), set_prompt(), sethistlist, setlist, show_annotation_level(), show_async_command_editing_p(), show_confirm(), show_exec_done_display_p(), show_gdb_datadir(), show_history_filename(), show_history_remove_duplicates(), show_history_size(), show_prompt(), show_write_history_p(), showhistlist, showlist, staged_gdb_datadir, top_prompt, and write_history_p.
Referenced by gdb_init().
void initialize_all_files | ( | void | ) |
Definition at line 164 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_c_language, _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_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_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_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_java_language, _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_language, _initialize_pascal_valprint, _initialize_printcmd, _initialize_probe, _initialize_proc_service, _initialize_psymtab, _initialize_python, _initialize_record, _initialize_record_btrace, _initialize_record_full, _initialize_regcache, _initialize_reggroup, _initialize_remote, _initialize_reverse, _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_out, _initialize_tui_regs, _initialize_tui_stack, _initialize_tui_win, _initialize_typeprint, _initialize_ui_out, _initialize_user_regs, _initialize_utils, _initialize_valarith, _initialize_valops, _initialize_valprint, _initialize_values, _initialize_varobj, and _initialize_xml_support.
Referenced by gdb_init().
int input_from_terminal_p | ( | void | ) |
Definition at line 1573 of file top.c.
References batch_flag, gdb_has_a_terminal(), in_user_command, and instream.
Referenced by ATTRIBUTE_PRINTF(), command_line_handler(), command_line_input(), quit_force(), and read_command_lines().
Definition at line 1413 of file top.c.
References any_thread_of_process(), qt_args::args, inferior::attach_flag, qt_args::from_tty, inferior::pid, thread_info::ptid, switch_to_thread(), target_detach(), target_has_execution, and target_kill().
Referenced by quit_force().
void maybe_wait_sync_command_done | ( | int | was_sync | ) |
Definition at line 370 of file top.c.
References gdb_do_one_event(), interpreter_async, and sync_execution.
Referenced by catch_command_errors(), catch_command_errors_const(), and execute_command().
struct cleanup* prepare_execute_command | ( | void | ) |
Definition at line 308 of file top.c.
References make_cleanup_value_free_to_mark(), non_stop, target_dcache_invalidate(), and value_mark().
Referenced by execute_command(), and mi_cmd_execute().
struct cleanup* prevent_dont_repeat | ( | void | ) |
Definition at line 598 of file top.c.
References make_cleanup_restore_integer(), and suppress_dont_repeat.
Referenced by bpstat_do_actions_1(), and execute_gdb_command().
void print_gdb_configuration | ( | struct ui_file * | stream | ) |
Definition at line 1280 of file top.c.
References _, AUTO_LOAD_DIR, AUTO_LOAD_SAFE_PATH, DEBUGDIR, DEBUGDIR_RELOCATABLE, fprintf_filtered(), GDB_DATADIR, GDB_DATADIR_RELOCATABLE, host_name, JIT_READER_DIR, JIT_READER_DIR_RELOCATABLE, PYTHON_PATH_RELOCATABLE, SYSTEM_GDBINIT, SYSTEM_GDBINIT_RELOCATABLE, target_name, TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_RELOCATABLE, and WITH_PYTHON_PATH.
Referenced by captured_main(), and show_configuration().
void print_gdb_version | ( | struct ui_file * | stream | ) |
Definition at line 1225 of file top.c.
References _, fprintf_filtered(), host_name, PKGVERSION, REPORT_BUGS_TO, target_name, and version.
Referenced by captured_main(), and show_version().
Definition at line 1444 of file top.c.
References _, inferior::attach_flag, fprintf_filtered(), inferior::num, inferior::pid, pid_to_ptid(), and target_pid_to_str().
Referenced by quit_confirm().
int quit_confirm | ( | void | ) |
Definition at line 1467 of file top.c.
References _, do_cleanups(), fprintf_filtered(), have_live_inferiors(), iterate_over_inferiors(), make_cleanup(), make_cleanup_ui_file_delete(), mem_fileopen(), print_inferior_quit_action(), query(), ui_file_xstrdup(), and xfree().
Referenced by quit_command().
void quit_force | ( | char * | args, |
int | from_tty | ||
) |
Definition at line 1497 of file top.c.
References all_cleanups(), qt_args::args, CATCH, disconnect_tracing(), do_final_cleanups(), END_CATCH, exception_print(), qt_args::from_tty, gdb_safe_append_history(), gdb_stderr, history_filename, input_from_terminal_p(), int, iterate_over_inferiors(), kill_or_detach(), parse_and_eval(), pop_all_targets(), return_child_result, return_child_result_value, RETURN_MASK_ALL, TRY, value_as_long(), and write_history_p.
Referenced by async_sigterm_handler(), captured_main(), mi_cmd_gdb_exit(), mi_execute_command(), quit(), and quit_command().
void read_command_file | ( | FILE * | stream | ) |
Definition at line 286 of file top.c.
References command_loop(), do_cleanups(), do_restore_instream_cleanup(), instream, and make_cleanup().
Referenced by script_from_file().
|
static |
Definition at line 1831 of file top.c.
References observer_notify_gdb_datadir_changed(), set_gdb_data_directory(), and staged_gdb_datadir.
Referenced by init_main().
void set_history | ( | char * | args, |
int | from_tty | ||
) |
Definition at line 1686 of file top.c.
References _, all_commands, gdb_stdout, help_list(), printf_unfiltered(), and sethistlist.
Referenced by _initialize_cli_cmds().
|
static |
Definition at line 1848 of file top.c.
References current_directory, and history_filename.
Referenced by init_main().
|
static |
Definition at line 1680 of file top.c.
References history_size_setshow_var, and set_readline_history_size().
Referenced by init_main().
void set_prompt | ( | const char * | s | ) |
Definition at line 1394 of file top.c.
References top_prompt, and xfree().
Referenced by gdbpy_before_prompt_hook(), and init_main().
|
static |
Definition at line 1668 of file top.c.
References gdb_assert.
Referenced by init_history(), and set_history_size_command().
void set_verbose | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) |
Definition at line 1703 of file top.c.
References CMD_LIST_AMBIGUOUS, cmd_list_element::doc, gdb_assert, info_verbose, lookup_cmd_1(), and showlist.
Referenced by _initialize_cli_cmds().
|
static |
Definition at line 1810 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 1801 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
void show_commands | ( | char * | args, |
int | from_tty | ||
) |
Definition at line 1603 of file top.c.
References Hist_print, line, offset, parse_and_eval_long(), and printf_filtered().
Referenced by _initialize_cli_cmds().
|
static |
Definition at line 96 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 1817 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 1840 of file top.c.
References _, fprintf_filtered(), and gdb_datadir.
Referenced by init_main().
void show_history | ( | char * | args, |
int | from_tty | ||
) |
Definition at line 1694 of file top.c.
References cmd_show_list(), and showhistlist.
Referenced by _initialize_cli_cmds().
|
static |
Definition at line 717 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 706 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 694 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 1794 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 682 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 907 of file top.c.
Referenced by gdb_add_history(), and gdb_safe_append_history().
|
static |
Definition at line 672 of file top.c.
Referenced by command_line_input(), and init_main().
int confirm = 1 |
Definition at line 93 of file top.c.
Referenced by ATTRIBUTE_PRINTF(), and init_main().
char* current_directory |
String containing the current directory (what getwd would return).
Definition at line 117 of file top.c.
Referenced by add_path(), bsd_kvm_open(), captured_main(), cd_command(), core_open(), gdb_abspath(), gdb_init(), go32_wait(), init_history(), m32r_upload_command(), openp(), pwd_command(), set_history_filename(), shell_escape(), and tfile_open().
void(* deprecated_attach_hook) (void) |
Definition at line 216 of file top.c.
Referenced by attach_command_post_wait().
void(* deprecated_call_command_hook) (struct cmd_list_element *c, char *cmd, int from_tty) |
Definition at line 239 of file top.c.
Referenced by clear_interpreter_hooks(), and execute_command().
void(* deprecated_context_hook) (int id) |
Definition at line 244 of file top.c.
Referenced by clear_interpreter_hooks(), and handle_signal_stop().
void(* deprecated_detach_hook) (void) |
Definition at line 217 of file top.c.
Referenced by detach_command(), disconnect_command(), and generic_mourn_inferior().
void(* deprecated_interactive_hook) (void) |
Definition at line 222 of file top.c.
Referenced by clear_interpreter_hooks(), and maybe_quit().
void(* deprecated_print_frame_info_listing_hook) (struct symtab *s, int line, int stopline, int noerror) |
Definition at line 185 of file top.c.
Referenced by clear_interpreter_hooks(), print_frame_info(), tui_install_hooks(), and tui_remove_hooks().
Definition at line 191 of file top.c.
Referenced by ATTRIBUTE_PRINTF(), clear_interpreter_hooks(), mi_insert_notify_hooks(), mi_remove_notify_hooks(), and tui_remove_hooks().
void(* deprecated_readline_begin_hook) (char *,...) |
Definition at line 209 of file top.c.
Referenced by clear_interpreter_hooks(), and read_command_lines().
void(* deprecated_readline_end_hook) (void) |
Definition at line 211 of file top.c.
Referenced by clear_interpreter_hooks(), and read_command_lines().
char*(* deprecated_readline_hook) (const char *) |
Definition at line 210 of file top.c.
Referenced by clear_interpreter_hooks(), command_line_input(), and read_next_line().
void(* deprecated_register_changed_hook) (int regno) |
Definition at line 227 of file top.c.
Referenced by clear_interpreter_hooks(), tui_install_hooks(), tui_remove_hooks(), and value_assign().
Definition at line 232 of file top.c.
Referenced by clear_interpreter_hooks(), fetch_inferior_event(), prepare_for_detach(), and wait_for_inferior().
Definition at line 180 of file top.c.
Referenced by do_hardwire_readchar(), do_ser_base_readchar(), gdb_os_poll_quit(), wait_for_connect(), and windows_wait().
void(* deprecated_warning_hook) (const char *, va_list) |
Definition at line 195 of file top.c.
Referenced by clear_interpreter_hooks(), and vwarning().
char gdb_dirbuf[1024] |
Definition at line 120 of file top.c.
Referenced by captured_main(), cd_command(), mi_cmd_env_pwd(), and pwd_command().
|
static |
Definition at line 742 of file top.c.
Referenced by gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().
|
static |
Definition at line 746 of file top.c.
Referenced by gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().
Definition at line 84 of file top.c.
Referenced by file_is_auto_load_safe(), get_init_files(), and init_cli_cmds().
int history_expansion_p |
Definition at line 678 of file top.c.
Referenced by _initialize_cli_cmds(), command_line_handler(), command_line_input(), and init_main().
|
static |
Definition at line 715 of file top.c.
Referenced by gdb_safe_append_history(), init_history(), init_main(), quit_force(), and set_history_filename().
|
static |
Definition at line 703 of file top.c.
Referenced by gdb_add_history(), and init_main().
|
static |
Definition at line 691 of file top.c.
Referenced by init_history(), init_main(), and set_history_size_command().
int in_user_command |
Definition at line 113 of file top.c.
Referenced by do_restore_user_call_depth(), execute_user_command(), and input_from_terminal_p().
int info_verbose = 0 |
Definition at line 1699 of file top.c.
Referenced by _initialize_cli_cmds(), add_memrange(), add_register(), add_static_trace_data(), backtrace_command_1(), check_frame_language_change(), checkpoint_command(), close_with_trace(), collect_symbol(), dbx_psymtab_to_symtab_1(), dbx_read_symtab(), dwarf2_read_symtab(), encode_actions_1(), fbsd_find_memory_regions(), follow_fork_inferior(), gcore_command(), gcore_create_callback(), handle_vfork_child_exec_or_exit(), ioctl_with_trace(), lm_addr_check(), map_overlay_command(), mdebug_read_symtab(), merge_uploaded_trace_state_variables(), open_with_trace(), overlay_auto_command(), overlay_manual_command(), overlay_off_command(), parse_external(), post_create_inferior(), print_section_info(), print_symbol_loading_p(), procfs_note(), procfs_wait(), psymtab_to_symtab_1(), remote_resume(), restore_command(), set_verbose(), show_info_verbose(), sol_thread_resume(), sol_thread_wait(), solib_add(), stringify_collection_list(), svr4_exec_displacement(), tfind_1(), wait_with_trace(), windows_delete_thread(), xcoff_psymtab_to_symtab_1(), and xcoff_read_symtab().
int inhibit_gdbinit = 0 |
Definition at line 86 of file top.c.
Referenced by _initialize_check_for_gdb_ini(), and captured_main().
FILE* instream |
Definition at line 109 of file top.c.
Referenced by async_sigterm_handler(), captured_command_loop(), captured_main(), command_handler(), command_line_handler(), command_line_input(), command_loop(), do_restore_instream_cleanup(), dont_repeat(), execute_user_command(), gdb_readline(), gdb_readline2(), gdb_setup_readline(), input_from_terminal_p(), mi_execute_command_wrapper(), python_interactive_command(), quit(), read_command_file(), read_next_line(), and stdin_event_handler().
char lang_frame_mismatch_warn[] |
Definition at line 109 of file language.c.
Referenced by check_frame_language_change(), and show_language_command().
char* lim_at_start |
Definition at line 170 of file top.c.
Referenced by captured_main(), make_command_stats_cleanup(), and report_command_stats().
|
static |
Definition at line 860 of file top.c.
Referenced by gdb_rl_operate_and_get_next(), and gdb_rl_operate_and_get_next_completion().
void(* pre_init_ui_hook) (void) |
Definition at line 296 of file top.c.
Referenced by gdb_init().
int remote_debug = 0 |
Definition at line 166 of file top.c.
Referenced by _initialize_cli_cmds(), async_remote_interrupt(), async_remote_interrupt_twice(), check_binary_download(), gdb_cntrl_c(), gdbsim_close(), gdbsim_create_inferior(), gdbsim_detach(), gdbsim_fetch_register(), gdbsim_files_info(), gdbsim_kill(), gdbsim_load(), gdbsim_mourn_inferior(), gdbsim_open(), gdbsim_resume_inferior(), gdbsim_store_register(), gdbsim_wait(), gdbsim_xfer_memory(), getpkt_or_notif_sane_1(), load_srec(), m32r_close(), m32r_create_inferior(), m32r_detach(), m32r_fetch_register(), m32r_insert_breakpoint(), m32r_insert_watchpoint(), m32r_kill(), m32r_mourn_inferior(), m32r_open(), m32r_prepare_to_store(), m32r_remove_breakpoint(), m32r_remove_watchpoint(), m32r_resume(), m32r_stop(), m32r_store_register(), m32r_wait(), m32r_xfer_memory(), mips_expect_timeout(), mips_kill(), mips_readchar(), mips_receive_header(), mips_receive_packet(), mips_send_packet(), monitor_interrupt(), monitor_read_memory(), monitor_wait(), monitor_wait_filter(), packet_ok(), putpkt_binary(), read_frame(), readchar(), remote_hostio_pread(), remote_stop(), sdireset_command(), sdistatus_command(), and send_g_packet().
int remote_timeout = 2 |
Definition at line 162 of file top.c.
Referenced by _initialize_cli_cmds(), captured_main(), getpkt_or_notif_sane_1(), mips_expect(), mips_send_packet(), pmon_check_ack(), pmon_check_entry_address(), putpkt_binary(), read_frame(), remote_flash_done(), remote_flash_erase(), remote_flash_write(), restore_remote_timeout(), send_srec(), and skip_frame().
|
static |
Definition at line 754 of file top.c.
Referenced by gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().
char* saved_command_line |
Definition at line 131 of file top.c.
Referenced by captured_main(), command_line_handler(), command_line_input(), dont_repeat(), and dont_repeat_command().
int saved_command_line_size = 100 |
Definition at line 132 of file top.c.
Referenced by captured_main(), command_line_handler(), and command_line_input().
int server_command |
Definition at line 140 of file top.c.
Referenced by ATTRIBUTE_PRINTF(), breakpoint_1(), command_line_handler(), command_line_input(), and dont_repeat().
const char* source_file_name |
Definition at line 272 of file top.c.
Referenced by command_line_handler(), command_line_input(), script_from_file(), and source_cleanup_lines().
int source_line_number |
Definition at line 266 of file top.c.
Referenced by command_line_handler(), command_line_input(), script_from_file(), and source_cleanup_lines().
|
static |
Definition at line 1826 of file top.c.
Referenced by init_main(), and set_gdb_datadir().
|
static |
Definition at line 577 of file top.c.
Referenced by dont_repeat(), and prevent_dont_repeat().
|
static |
Definition at line 1381 of file top.c.
Referenced by get_prompt(), init_main(), and set_prompt().
void(* window_hook) (FILE *, char *) |
Definition at line 126 of file top.c.
Referenced by command_loop().
|
static |
Definition at line 680 of file top.c.
Referenced by init_main(), and quit_force().