GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
top.h File Reference
#include "gdbsupport/event-loop.h"
#include "gdbsupport/next-iterator.h"
#include "value.h"

Go to the source code of this file.

Functions

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) ATTRIBUTE_NORETURN
 
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 ()
 
void unbuffer_stream (FILE *stream)
 

Variables

bool confirm
 
int inhibit_gdbinit
 
auto_boolean interactive_mode
 
int source_line_number
 
std::string source_file_name
 
bool history_expansion_p
 
bool server_command
 
char * lim_at_start
 

Function Documentation

◆ check_frame_language_change()

void check_frame_language_change ( void )
extern

◆ check_quiet_mode()

bool check_quiet_mode ( )
extern

Definition at line 2122 of file top.c.

References startup_quiet.

Referenced by captured_main_1().

◆ command_loop()

void command_loop ( void )
extern

◆ execute_command()

void execute_command ( const char * p,
int from_tty )
extern

◆ gdb_add_history()

void gdb_add_history ( const char * command)
extern

Definition at line 1120 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)
extern

◆ gdb_init()

void gdb_init ( )
extern

◆ get_prompt()

const std::string & get_prompt ( )
extern

Definition at line 1627 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 )
extern

◆ init_history()

void init_history ( void )
extern

◆ maybe_wait_sync_command_done()

void maybe_wait_sync_command_done ( int was_sync)
extern

◆ prepare_execute_command()

scoped_value_mark prepare_execute_command ( void )
extern

Definition at line 356 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)
extern

◆ print_gdb_version()

void print_gdb_version ( struct ui_file * stream,
bool interactive )
extern

◆ quit_command()

void quit_command ( const char * args,
int from_tty )
extern

◆ quit_confirm()

int quit_confirm ( void )
extern

◆ quit_cover()

void quit_cover ( void )
extern

◆ quit_force()

void quit_force ( int * exit_arg,
int from_tty )
extern

◆ read_command_file()

void read_command_file ( FILE * stream)
extern

Definition at line 322 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)
extern

Definition at line 1635 of file top.c.

References top_prompt.

Referenced by init_main().

◆ set_verbose()

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

◆ show_commands()

void show_commands ( const char * args,
int from_tty )
extern

Definition at line 1861 of file top.c.

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

◆ unbuffer_stream()

void unbuffer_stream ( FILE * stream)
extern

Definition at line 261 of file top.c.

References ISATTY.

Referenced by read_command_file(), and ui::ui().

◆ wait_sync_command_done()

void wait_sync_command_done ( void )
extern

Definition at line 414 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 134 of file top.c.

Referenced by ATTRIBUTE_PRINTF(), ATTRIBUTE_PRINTF(), and init_main().

◆ history_expansion_p

bool history_expansion_p
extern

Definition at line 843 of file top.c.

Referenced by handle_line_of_input(), and init_main().

◆ inhibit_gdbinit

int inhibit_gdbinit
extern

Definition at line 129 of file top.c.

Referenced by _initialize_check_for_gdb_ini(), and captured_main_1().

◆ interactive_mode

auto_boolean interactive_mode
extern

Definition at line 1831 of file top.c.

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

◆ lim_at_start

char* lim_at_start
extern

◆ server_command

bool server_command
extern

Definition at line 173 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 318 of file top.c.

Referenced by command_line_input(), and script_from_file().

◆ source_line_number

int source_line_number
extern

Definition at line 312 of file top.c.

Referenced by command_line_input(), and script_from_file().