GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/top.h File Reference
#include "buffer.h"
#include "event-loop.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 ())
 
#define ALL_UIS(UI)   for (UI = ui_list; UI; UI = UI->next) \
 

Enumerations

enum  prompt_state { PROMPT_BLOCKED, PROMPT_NEEDED, PROMPTED }
 

Functions

void ui_register_input_event_handler (struct ui *ui)
 
void ui_unregister_input_event_handler (struct ui *ui)
 
void print_gdb_version (struct ui_file *)
 
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)
 
char * get_prompt (void)
 
void set_prompt (const char *s)
 
int gdb_in_secondary_prompt_p (struct ui *ui)
 
void gdb_init (char *)
 
void gdb_add_history (const char *)
 
void show_commands (const char *args, int from_tty)
 
void set_history (const char *, int)
 
void show_history (const char *, int)
 
void set_verbose (const char *, int, struct cmd_list_element *)
 
char * handle_line_of_input (struct buffer *cmd_line_buffer, char *rl, int repeat, const char *annotation_suffix)
 

Variables

struct uimain_ui
 
struct uicurrent_ui
 
struct uiui_list
 
char * saved_command_line
 
int confirm
 
int inhibit_gdbinit
 
const char gdbinit []
 
int readnow_symbol_files
 
int readnever_symbol_files
 
int source_line_number
 
const char * source_file_name
 
int history_expansion_p
 
int server_command
 
char * lim_at_start
 

Macro Definition Documentation

◆ ALL_UIS

#define ALL_UIS (   UI)    for (UI = ui_list; UI; UI = UI->next) \

Definition at line 210 of file top.h.

Referenced by handle_no_resumed(), and quit_force().

◆ SWITCH_THRU_ALL_UIS

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

Enumeration Type Documentation

◆ prompt_state

Enumerator
PROMPT_BLOCKED 
PROMPT_NEEDED 
PROMPTED 

Definition at line 31 of file top.h.

Function Documentation

◆ check_frame_language_change()

void check_frame_language_change ( void  )

◆ command_loop()

void command_loop ( void  )

◆ execute_command()

void execute_command ( const char *  ,
int   
)

◆ gdb_add_history()

void gdb_add_history ( const char *  )

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 *  )

◆ get_prompt()

char* get_prompt ( void  )

Definition at line 1445 of file top.c.

References top_prompt.

Referenced by top_level_prompt().

◆ handle_line_of_input()

char* handle_line_of_input ( struct buffer cmd_line_buffer,
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 440 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 )

◆ print_gdb_version()

void print_gdb_version ( struct ui_file )

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

◆ quit_command()

void quit_command ( const char *  ,
int   
)

◆ quit_confirm()

int quit_confirm ( void  )

◆ quit_cover()

void quit_cover ( void  )

◆ quit_force()

void quit_force ( int *  ,
int   
)

◆ read_command_file()

void read_command_file ( FILE *  )

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

void set_history ( const char *  ,
int   
)

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_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_verbose()

void set_verbose ( const char *  ,
int  ,
struct cmd_list_element  
)

◆ show_commands()

void show_commands ( const char *  args,
int  from_tty 
)

◆ show_history()

void show_history ( const char *  ,
int   
)

Definition at line 1786 of file top.c.

References cmd_show_list(), and showhistlist.

Referenced by _initialize_cli_cmds().

◆ ui_register_input_event_handler()

void ui_register_input_event_handler ( struct ui ui)

◆ ui_unregister_input_event_handler()

void ui_unregister_input_event_handler ( struct ui ui)

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

References delete_file_handler(), and ui::input_fd.

Referenced by scoped_input_handler::~scoped_input_handler().

◆ wait_sync_command_done()

void wait_sync_command_done ( void  )

Variable Documentation

◆ confirm

int confirm

Referenced by ATTRIBUTE_PRINTF(), and init_main().

◆ current_ui

struct ui* current_ui

Definition at line 453 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(), call_thread_fsm_should_stop(), captured_command_loop(), captured_main_1(), catch_command_errors(), change_line_handler(), check_curr_ui_sync_execution_done(), command_handler(), command_line_handler(), command_line_input(), compile_code_command(), compile_file_command(), compile_print_command(), continue_1(), current_interpreter(), display_gdb_prompt(), display_mi_prompt(), dont_repeat(), execute_command(), execute_command_to_string(), execute_control_command(), execute_gdb_command(), execute_user_command(), fetch_inferior_event(), follow_fork_inferior(), gdb_disable_readline(), gdb_readline_no_editing(), gdb_readline_no_editing_callback(), gdb_readline_wrapper(), 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(), cli_interp::resume(), tui_interp::resume(), mi_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(), show_editing(), show_interactive_mode(), start_event_loop(), stdin_event_handler(), switch_thru_all_uis::switch_thru_all_uis(), tui_getc(), tui_redisplay_readline(), tui_rl_startup_hook(), undo_terminal_modifications_before_exit(), wait_sync_command_done(), and while_command().

◆ gdbinit

const char gdbinit[]

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

◆ inhibit_gdbinit

int inhibit_gdbinit

◆ lim_at_start

char* lim_at_start

◆ main_ui

struct ui* main_ui

◆ readnever_symbol_files

int readnever_symbol_files

◆ readnow_symbol_files

int readnow_symbol_files

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

◆ ui_list

struct ui* ui_list

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

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