|
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 "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) |
| #define DEFAULT_PROMPT "(gdb) " |
Definition at line 90 of file top.c.
Referenced by init_main().
| #define Hist_print 10 |
Definition at line 1695 of file top.c.
Referenced by show_commands().
| #define O_NOCTTY 0 |
Definition at line 78 of file top.c.
Referenced by open_terminal_stream().
| void check_frame_language_change | ( | void | ) |
Definition at line 456 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().
| char* command_line_input | ( | const char * | prompt_arg, |
| int | repeat, | ||
| const char * | annotation_suffix | ||
| ) |
Definition at line 1173 of file top.c.
References annotation_level, buffer_init(), command_editing_p, current_ui, deprecated_readline_hook, gdb_flush(), gdb_readline_no_editing(), gdb_readline_wrapper(), gdb_stderr, gdb_stdout, handle_line_of_input(), input_interactive_p(), ui::instream, job_control, puts_unfiltered(), source_file_name, source_line_number, ui::stdin_stream, buffer::used_size, and wrap_here().
Referenced by decode_line_2(), gdbpy_readline_wrapper(), get_selections(), read_command_file(), and read_next_line().
| void dont_repeat | ( | void | ) |
Definition at line 695 of file top.c.
References current_ui, ui::instream, saved_command_line, server_command, ui::stdin_stream, 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_mem_command(), delete_trace_command(), delete_trace_variable_command(), detach_command(), directory_command(), disconnect_command(), display_command(), gdbscm_dont_repeat(), info_line_command(), interrupt_command(), load_command(), maint_agent_printf_command(), maint_btrace_packet_history_cmd(), maintenance_info_line_tables(), maintenance_info_symtabs(), maintenance_print_msymbols(), maintenance_print_objfiles(), maintenance_print_psymbols(), maintenance_print_symbols(), mi_cmd_env_dir(), mi_cmd_env_path(), new_ui_command(), 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(), tstart_command(), tui_rl_switch_mode(), and undisplay_command().
|
static |
| void execute_command | ( | const char * | p, |
| int | from_tty | ||
| ) |
Definition at line 540 of file top.c.
References _, check_frame_language_change(), class_user, cmd_func(), cmd_func_p(), cmdlist, current_ui, deprecated_call_command_hook, deprecated_cmd_warning(), cmd_list_element::deprecated_warn_user, discard_cleanups(), do_set_command(), do_show_command(), error(), execute_cmd_post_hook(), execute_cmd_pre_hook(), execute_user_command(), gdb_assert, is_complete_command(), lookup_cmd(), make_bpstat_clear_actions_cleanup(), make_scoped_restore(), maybe_wait_sync_command_done(), prepare_execute_command(), print_command_trace(), PROMPT_BLOCKED, ui::prompt_state, repeat_arguments, saved_command_line, set_cmd, show_cmd, string, target_log_command, cmd_list_element::theclass, cmd_list_element::type, and cmd_list_element::user_commands.
Referenced by captured_main_1(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmd_record_full_start(), cmd_record_start(), command_handler(), command_line_handler(), env_execute_cli_command(), eval_command(), exec_reverse_once(), execute_command_to_string(), execute_control_command_1(), execute_gdb_command(), mi_execute_async_cli_command(), mi_execute_cli_command(), nto_init_solib_absolute_prefix(), safe_execute_command(), thread_apply_all_command(), thread_apply_command(), and tui_update_command().
| std::string execute_command_to_string | ( | const char * | p, |
| int | from_tty | ||
| ) |
Definition at line 655 of file top.c.
References ui::async, current_ui, current_uiout, execute_command(), gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, make_scoped_restore(), and string_file::string().
Referenced by execute_gdb_command(), record_start(), and record_stop().
| 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().
| int gdb_in_secondary_prompt_p | ( | struct ui * | ui | ) |
Definition at line 888 of file top.c.
References ui::secondary_prompt_depth.
Referenced by check_curr_ui_sync_execution_done(), tui_getc(), tui_redisplay_readline(), and tui_rl_startup_hook().
| void gdb_init | ( | char * | argv0 | ) |
Definition at line 2113 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_1().
|
static |
Definition at line 728 of file top.c.
References buffer::buffer, buffer_finish(), buffer_grow_char(), buffer_init(), current_ui, fputs_unfiltered(), gdb_flush(), gdb_stdout, ui::instream, interruptible_select(), ui::line_buffer, perror_with_name(), QUIT, buffer::used_size, and xfree().
Referenced by command_line_input().
| char* gdb_readline_wrapper | ( | const char * | prompt | ) |
Definition at line 964 of file top.c.
References after_char_processing_hook, ui::command_editing, current_ui, display_gdb_prompt(), do_cleanups(), gdb_assert, gdb_do_one_event(), gdb_readline_wrapper_done, gdb_readline_wrapper_line(), gdb_readline_wrapper_result, ui::input_handler, make_cleanup(), make_scoped_restore(), ui::secondary_prompt_depth, target_async(), target_is_async_p, and XNEW.
Referenced by ATTRIBUTE_PRINTF(), command_line_input(), and prompt_for_continue().
|
static |
Definition at line 930 of file top.c.
References after_char_processing_hook, ui::command_editing, current_ui, gdb_assert, gdb_readline_wrapper_done, gdb_readline_wrapper_line(), gdb_readline_wrapper_result, ui::input_handler, saved_after_char_processing_hook, ui::secondary_prompt_depth, target_async(), and xfree().
|
static |
Definition at line 898 of file top.c.
References after_char_processing_hook, ui::command_editing, current_ui, gdb_assert, gdb_readline_wrapper_done, gdb_readline_wrapper_result, gdb_rl_callback_handler_remove(), and saved_after_char_processing_hook.
Referenced by gdb_readline_wrapper(), and gdb_readline_wrapper_cleanup().
|
static |
Definition at line 1041 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 1020 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 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 | ( | struct ui_file * | , |
| gdb_stdout | |||
| ) |
Definition at line 103 of file top.c.
References _, and fprintf_filtered().
| char* get_prompt | ( | void | ) |
| void init_history | ( | void | ) |
Definition at line 1821 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_1().
|
static |
Definition at line 1963 of file top.c.
References _, add_cmd(), add_com(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_filename_cmd(), add_setshow_string_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), annotation_level, class_maintenance, class_obscure, class_support, cli_display_match_list(), cmdlist, command_editing_p, confirm, DEFAULT_PROMPT, default_word_break_characters(), dont_repeat_command(), exec_done_display_p, gdb_completion_word_break_characters(), gdb_rl_attempted_completion_function(), gdb_rl_operate_and_get_next(), get_gdb_completer_quote_characters(), history_expansion_p, history_filename, history_remove_duplicates, history_size_setshow_var, interactive_mode, interpreter_completer(), new_ui_command(), no_class, set_cmd_completer(), set_editing(), set_editing_cmd_var, set_gdb_datadir(), set_history_filename(), set_history_size_command(), set_prompt(), set_rl_completer_word_break_characters(), sethistlist, setlist, show_annotation_level(), show_editing(), show_exec_done_display_p(), show_gdb_datadir(), show_history_filename(), show_history_remove_duplicates(), show_history_size(), show_interactive_mode(), 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 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().
| int input_interactive_p | ( | struct ui * | ui | ) |
Definition at line 1673 of file top.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_TRUE, batch_flag, ui::input_interactive_p, and interactive_mode.
Referenced by ATTRIBUTE_PRINTF(), command_line_input(), handle_line_of_input(), quit_force(), read_command_lines(), and show_interactive_mode().
|
static |
Definition at line 1472 of file top.c.
References any_thread_of_process(), qt_args::args, qt_args::from_tty, inf::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 511 of file top.c.
References ui::async, current_ui, PROMPT_BLOCKED, ui::prompt_state, and wait_sync_command_done().
Referenced by catch_command_errors(), and execute_command().
|
static |
Definition at line 327 of file top.c.
References _, gdb::argv, ui::async, current_ui, dont_repeat(), error(), interp_pre_command_loop(), make_scoped_restore(), open_terminal_stream(), printf_unfiltered(), set_top_level_interpreter(), top_level_interpreter(), and ui::ui().
Referenced by init_main().
|
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().
| 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().
| 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().
| void print_gdb_configuration | ( | struct ui_file * | stream | ) |
Definition at line 1339 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_1(), and show_configuration().
| 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().
|
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().
| int quit_confirm | ( | void | ) |
Definition at line 1526 of file top.c.
References _, string_file::c_str(), have_live_inferiors(), iterate_over_inferiors(), print_inferior_quit_action(), ui_file::puts(), and query().
Referenced by quit_command().
| void quit_force | ( | int * | exit_arg, |
| int | from_tty | ||
| ) |
Definition at line 1566 of file top.c.
References all_cleanups(), ALL_UIS, 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_interactive_p(), iterate_over_inferiors(), kill_or_detach(), pop_all_targets(), return_child_result, return_child_result_value, RETURN_MASK_ALL, TRY, ui::ui(), undo_terminal_modifications_before_exit(), and write_history_p.
Referenced by async_sigterm_handler(), captured_main_1(), mi_cmd_gdb_exit(), mi_execute_command(), quit(), and quit_command().
| 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().
|
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().
|
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().
| 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().
|
static |
Definition at line 1951 of file top.c.
References current_directory, and history_filename.
Referenced by init_main().
|
static |
Definition at line 1771 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 1453 of file top.c.
References top_prompt, and xfree().
Referenced by gdbpy_before_prompt_hook(), and init_main().
|
static |
Definition at line 1759 of file top.c.
References gdb_assert.
Referenced by init_history(), and set_history_size_command().
| 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().
| void set_verbose | ( | const char * | args, |
| int | from_tty, | ||
| struct cmd_list_element * | c | ||
| ) |
Definition at line 1795 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 1913 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
| void show_commands | ( | const char * | args, |
| int | from_tty | ||
| ) |
Definition at line 1697 of file top.c.
References Hist_print, ui::num, offset, parse_and_eval_long(), printf_filtered(), and set_repeat_arguments().
Referenced by _initialize_cli_cmds().
|
static |
Definition at line 1904 of file top.c.
References _, ui::command_editing, current_ui, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 1920 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 1943 of file top.c.
References _, fprintf_filtered(), and gdb_datadir.
Referenced by init_main().
| 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().
|
static |
Definition at line 845 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 834 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 822 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
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().
|
static |
Definition at line 1886 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
static |
Definition at line 810 of file top.c.
References _, and fprintf_filtered().
Referenced by init_main().
|
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().
| void wait_sync_command_done | ( | void | ) |
Definition at line 497 of file top.c.
References current_ui, gdb_do_one_event(), make_scoped_restore(), PROMPT_BLOCKED, and ui::prompt_state.
Referenced by maybe_wait_sync_command_done(), and run_inferior_call().
|
static |
Definition at line 1062 of file top.c.
Referenced by gdb_add_history(), and gdb_safe_append_history().
|
static |
Definition at line 800 of file top.c.
Referenced by command_line_input(), and init_main().
| 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().
| void(* deprecated_attach_hook) (void) |
Definition at line 221 of file top.c.
Referenced by attach_post_wait().
| 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().
| 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 222 of file top.c.
Referenced by detach_command(), disconnect_command(), and generic_mourn_inferior().
| void(* deprecated_interactive_hook) (void) |
Definition at line 227 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 190 of file top.c.
Referenced by clear_interpreter_hooks(), print_frame_info(), tui_install_hooks(), and tui_remove_hooks().
| int(* deprecated_query_hook) (const char *, va_list) |
Definition at line 196 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) (const char *,...) |
Definition at line 214 of file top.c.
Referenced by clear_interpreter_hooks(), and read_command_lines().
| void(* deprecated_readline_end_hook) (void) |
Definition at line 216 of file top.c.
Referenced by clear_interpreter_hooks(), and read_command_lines().
| 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().
| 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().
| 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().
| void(* deprecated_warning_hook) (const char *, va_list) |
Definition at line 200 of file top.c.
Referenced by clear_interpreter_hooks(), and vwarning().
|
static |
Definition at line 870 of file top.c.
Referenced by gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().
|
static |
Definition at line 874 of file top.c.
Referenced by gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().
| int history_expansion_p |
Definition at line 806 of file top.c.
Referenced by _initialize_cli_cmds(), handle_line_of_input(), and init_main().
|
static |
Definition at line 843 of file top.c.
Referenced by gdb_safe_append_history(), init_history(), init_main(), quit_force(), and set_history_filename().
|
static |
Definition at line 831 of file top.c.
Referenced by gdb_add_history(), and init_main().
|
static |
Definition at line 819 of file top.c.
Referenced by init_history(), init_main(), and set_history_size_command().
| int info_verbose = 0 |
Definition at line 1791 of file top.c.
Referenced by _initialize_cli_cmds(), collection_list::add_memrange(), collection_list::add_register(), collection_list::add_static_trace_data(), backtrace_command_1(), check_frame_language_change(), checkpoint_command(), close_with_trace(), collection_list::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(), 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_with_hc(), restore_command(), set_verbose(), show_info_verbose(), sol_thread_resume(), sol_thread_wait(), solib_add(), collection_list::stringify(), svr4_exec_displacement(), tfind_1(), wait_with_trace(), windows_delete_thread(), write_with_trace(), xcoff_psymtab_to_symtab_1(), and xcoff_read_symtab().
|
static |
Definition at line 1653 of file top.c.
Referenced by init_main(), input_interactive_p(), and show_interactive_mode().
| char* lim_at_start |
Definition at line 175 of file top.c.
Referenced by captured_main_1(), scoped_command_stats::scoped_command_stats(), and scoped_command_stats::~scoped_command_stats().
|
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().
| void(* pre_init_ui_hook) (void) |
Definition at line 428 of file top.c.
Referenced by gdb_init().
| int remote_debug = 0 |
Definition at line 171 of file top.c.
Referenced by _initialize_cli_cmds(), check_binary_download(), 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(), packet_ok(), process_initial_stop_replies(), putpkt_binary(), read_frame(), remote_current_thread(), remote_hostio_pread(), remote_interrupt(), remote_pass_ctrlc(), remote_set_syscall_catchpoint(), remote_start_remote(), remote_stop(), and send_g_packet().
| int remote_timeout = 2 |
Definition at line 167 of file top.c.
Referenced by _initialize_cli_cmds(), captured_main_1(), getpkt_or_notif_sane_1(), putpkt_binary(), read_frame(), remote_flash_done(), remote_flash_erase(), remote_flash_write(), and skip_frame().
|
static |
Definition at line 526 of file top.c.
Referenced by execute_command(), and set_repeat_arguments().
|
static |
Definition at line 882 of file top.c.
Referenced by gdb_readline_wrapper_cleanup(), and gdb_readline_wrapper_line().
| char* saved_command_line |
Definition at line 137 of file top.c.
Referenced by captured_main_1(), dont_repeat(), dont_repeat_command(), execute_command(), and handle_line_of_input().
| int server_command |
Definition at line 145 of file top.c.
Referenced by ATTRIBUTE_PRINTF(), breakpoint_1(), dont_repeat(), and handle_line_of_input().
| const char* source_file_name |
Definition at line 402 of file top.c.
Referenced by command_line_input(), and script_from_file().
| int source_line_number |
Definition at line 396 of file top.c.
Referenced by command_line_input(), and script_from_file().
|
static |
Definition at line 1929 of file top.c.
Referenced by init_main(), and set_gdb_datadir().
|
static |
Definition at line 690 of file top.c.
Referenced by dont_repeat(), and prevent_dont_repeat().
|
static |
Definition at line 1440 of file top.c.
Referenced by get_prompt(), init_main(), and set_prompt().
|
static |
Definition at line 808 of file top.c.
Referenced by init_main(), and quit_force().
1.8.14