GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-13.1/gdb/top.h File Reference
#include "gdbsupport/buffer.h"
#include "gdbsupport/event-loop.h"
#include "gdbsupport/next-iterator.h"
#include "value.h"

Go to the source code of this file.

Classes

struct  ui
 
class  switch_thru_all_uis
 

Macros

#define SWITCH_THRU_ALL_UIS()    for (switch_thru_all_uis stau_state; !stau_state.done (); stau_state.next ())
 

Typedefs

using ui_range = next_range< ui >
 

Enumerations

enum  prompt_state { PROMPT_BLOCKED , PROMPT_NEEDED , PROMPTED }
 

Functions

static ui_range all_uis ()
 
void print_gdb_version (struct ui_file *stream, bool interactive)
 
void print_gdb_configuration (struct ui_file *)
 
void read_command_file (FILE *)
 
void init_history (void)
 
void command_loop (void)
 
int quit_confirm (void)
 
void quit_force (int *, int)
 
void quit_command (const char *, int)
 
void quit_cover (void)
 
void execute_command (const char *, int)
 
void maybe_wait_sync_command_done (int was_sync)
 
void wait_sync_command_done (void)
 
void check_frame_language_change (void)
 
scoped_value_mark prepare_execute_command (void)
 
const std::string & get_prompt ()
 
void set_prompt (const char *s)
 
int gdb_in_secondary_prompt_p (struct ui *ui)
 
void gdb_init ()
 
void gdb_add_history (const char *)
 
void show_commands (const char *args, int from_tty)
 
void set_verbose (const char *, int, struct cmd_list_element *)
 
const char * handle_line_of_input (std::string &cmd_line_buffer, const char *rl, int repeat, const char *annotation_suffix)
 
bool check_quiet_mode ()
 

Variables

struct uimain_ui
 
struct uicurrent_ui
 
struct uiui_list
 
bool confirm
 
int inhibit_gdbinit
 
int source_line_number
 
std::string source_file_name
 
bool history_expansion_p
 
bool server_command
 
char * lim_at_start
 

Macro Definition Documentation

◆ SWITCH_THRU_ALL_UIS

#define SWITCH_THRU_ALL_UIS ( )     for (switch_thru_all_uis stau_state; !stau_state.done (); stau_state.next ())

Definition at line 210 of file top.h.

Typedef Documentation

◆ ui_range

using ui_range = next_range<ui>

Definition at line 213 of file top.h.

Enumeration Type Documentation

◆ prompt_state

Enumerator
PROMPT_BLOCKED 
PROMPT_NEEDED 
PROMPTED 

Definition at line 30 of file top.h.

Function Documentation

◆ all_uis()

static ui_range all_uis ( )
inlinestatic

Definition at line 217 of file top.h.

References ui_list.

Referenced by handle_no_resumed(), and quit_force().

◆ check_frame_language_change()

void check_frame_language_change ( void  )

◆ check_quiet_mode()

bool check_quiet_mode ( )

Definition at line 2203 of file top.c.

References startup_quiet.

Referenced by captured_main_1().

◆ command_loop()

void command_loop ( void  )

◆ execute_command()

void execute_command ( const char *  p,
int  from_tty 
)

Definition at line 574 of file top.c.

Referenced by execute_command_to_string(), and execute_command_to_ui_file().

◆ gdb_add_history()

void gdb_add_history ( const char *  command)

Definition at line 1233 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 ( )

◆ get_prompt()

const std::string & get_prompt ( )

Definition at line 1703 of file top.c.

References top_prompt.

Referenced by top_level_prompt().

◆ handle_line_of_input()

const char * handle_line_of_input ( std::string &  cmd_line_buffer,
const char *  rl,
int  repeat,
const char *  annotation_suffix 
)

◆ init_history()

void init_history ( void  )

◆ maybe_wait_sync_command_done()

void maybe_wait_sync_command_done ( int  was_sync)

◆ prepare_execute_command()

scoped_value_mark prepare_execute_command ( void  )

Definition at line 471 of file top.c.

References non_stop, and target_dcache_invalidate().

Referenced by execute_command(), and mi_cmd_execute().

◆ print_gdb_configuration()

void print_gdb_configuration ( struct ui_file stream)

◆ print_gdb_version()

void print_gdb_version ( struct ui_file stream,
bool  interactive 
)

◆ quit_command()

void quit_command ( const char *  args,
int  from_tty 
)

◆ quit_confirm()

int quit_confirm ( void  )

◆ quit_cover()

void quit_cover ( void  )

◆ quit_force()

void quit_force ( int *  exit_arg,
int  from_tty 
)

◆ read_command_file()

void read_command_file ( FILE *  stream)

Definition at line 437 of file top.c.

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

Referenced by script_from_file().

◆ set_prompt()

void set_prompt ( const char *  s)

Definition at line 1711 of file top.c.

References top_prompt.

Referenced by gdbpy_before_prompt_hook(), and init_main().

◆ set_verbose()

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

◆ show_commands()

void show_commands ( const char *  args,
int  from_tty 
)

Definition at line 1942 of file top.c.

References gdb_printf(), Hist_print, ui::num, parse_and_eval_long(), and set_repeat_arguments().

◆ wait_sync_command_done()

void wait_sync_command_done ( void  )

Definition at line 529 of file top.c.

References current_ui, enable, PROMPT_BLOCKED, and ui::prompt_state.

Referenced by maybe_wait_sync_command_done(), and run_inferior_call().

Variable Documentation

◆ confirm

bool confirm
extern

Definition at line 133 of file top.c.

Referenced by ATTRIBUTE_PRINTF(), and init_main().

◆ current_ui

struct ui* current_ui
extern

Definition at line 483 of file event-top.c.

Referenced by abort_with_message(), all_uis_on_sync_execution_starting(), annotate_breakpoints_invalid(), annotate_frames_invalid(), async_disable_stdin(), async_enable_stdin(), ATTRIBUTE_PRINTF(), bpstat_do_actions_1(), call_function_by_hand_dummy(), captured_command_loop(), captured_main_1(), catch_command_errors(), change_line_handler(), check_curr_ui_sync_execution_done(), cli_ui_out::clear_current_line(), command_handler(), command_line_handler(), command_line_input(), compile_code_command(), compile_file_command(), compile_print_command(), continue_1(), current_interpreter(), current_ui_current_uiout_ptr(), current_ui_gdb_stderr_ptr(), current_ui_gdb_stdin_ptr(), current_ui_gdb_stdlog_ptr(), current_ui_gdb_stdout_ptr(), display_gdb_prompt(), display_mi_prompt(), cli_ui_out::do_progress_notify(), dont_repeat(), execute_command(), execute_control_command(), execute_control_commands(), execute_fn_to_ui_file(), execute_gdb_command(), execute_user_command(), fetch_inferior_event(), follow_fork_inferior(), gdb_disable_readline(), gdb_internal_backtrace(), gdb_readline_no_editing(), gdb_readline_no_editing_callback(), gdb_readline_wrapper(), gdb_readline_wrapper_cleanup::gdb_readline_wrapper_cleanup(), gdb_readline_wrapper_line(), gdb_rl_callback_handler(), gdb_rl_callback_handler_install(), gdb_rl_callback_handler_reinstall(), gdb_rl_callback_handler_remove(), gdb_setup_readline(), get_command_line_buffer(), get_current_interp_info(), handle_line_of_input(), if_command(), target_terminal::inferior(), inferior_event_handler(), interpreter_exec_cmd(), invoke_async_signal_handlers(), ioscm_with_output_to_port_worker(), maybe_wait_sync_command_done(), mi_cmd_interpreter_exec(), mi_execute_command(), mi_execute_command_input_handler(), mi_execute_command_wrapper(), mi_on_normal_stop_1(), mi_on_resume_1(), new_ui_command(), switch_thru_all_uis::next(), normal_stop(), target_terminal::ours(), target_terminal::ours_for_output(), postfork_child_hook(), postfork_hook(), prefork_hook(), print_flush(), python_command(), python_interactive_command(), read_command_file(), read_command_lines(), read_next_line(), reinstall_readline_callback_handler_cleanup(), target_terminal::restore_inferior(), cli_interp::resume(), mi_interp::resume(), tui_interp::resume(), run_inferior_call(), scoped_input_handler::scoped_input_handler(), script_from_file(), set_editing(), scoped_restore_interp::set_interp(), set_top_level_interpreter(), call_thread_fsm::should_stop(), show_editing(), show_interactive_mode(), start_event_loop(), stdin_event_handler(), switch_thru_all_uis::switch_thru_all_uis(), tui_getc_1(), tui_inject_newline_into_command_window(), tui_redisplay_readline(), tui_rl_startup_hook(), undo_terminal_modifications_before_exit(), wait_sync_command_done(), while_command(), with_command_1(), and gdb_readline_wrapper_cleanup::~gdb_readline_wrapper_cleanup().

◆ history_expansion_p

bool history_expansion_p
extern

Definition at line 961 of file top.c.

Referenced by handle_line_of_input(), and init_main().

◆ inhibit_gdbinit

int inhibit_gdbinit
extern

Definition at line 128 of file top.c.

Referenced by _initialize_check_for_gdb_ini(), and captured_main_1().

◆ lim_at_start

char* lim_at_start
extern

◆ main_ui

struct ui* main_ui
extern

◆ server_command

bool server_command
extern

Definition at line 172 of file top.c.

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

◆ source_file_name

std::string source_file_name
extern

Definition at line 433 of file top.c.

Referenced by command_line_input(), and script_from_file().

◆ source_line_number

int source_line_number
extern

Definition at line 427 of file top.c.

Referenced by command_line_input(), and script_from_file().

◆ ui_list

struct ui* ui_list
extern

Definition at line 484 of file event-top.c.

Referenced by all_uis(), switch_thru_all_uis::switch_thru_all_uis(), ui::ui(), and ui::~ui().