GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/gdb/top.h File Reference

Go to the source code of this file.

Functions

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 (char *, int)
void quit_command (char *, int)
void quit_cover (void)
void execute_command (char *, int)
void check_frame_language_change (void)
struct cleanupprepare_execute_command (void)
char * get_prompt (void)
void set_prompt (const char *s)
void gdb_init (char *)
void show_commands (char *args, int from_tty)
void set_history (char *, int)
void show_history (char *, int)
void set_verbose (char *, int, struct cmd_list_element *)
void do_restore_instream_cleanup (void *stream)

Variables

char * saved_command_line
int saved_command_line_size
FILE * instream
int in_user_command
int confirm
char gdb_dirbuf [1024]
int inhibit_gdbinit
const char gdbinit []
int readnow_symbol_files
int source_line_number
const char * source_file_name
int history_expansion_p
int server_command
char * lim_at_start

Function Documentation

void check_frame_language_change ( void  )
void command_loop ( void  )
void do_restore_instream_cleanup ( void *  stream)

Definition at line 296 of file top.c.

References instream.

Referenced by execute_user_command(), and read_command_file().

void execute_command ( char *  ,
int   
)
void gdb_init ( char *  )
char* get_prompt ( void  )

Definition at line 1255 of file top.c.

References top_prompt.

Referenced by command_loop(), gdb_prompt_command(), and top_level_prompt().

void init_history ( void  )

Definition at line 1599 of file top.c.

References current_directory, history_filename, history_size_setshow_var, and cmd_list_element::var.

Referenced by captured_main().

struct cleanup* prepare_execute_command ( void  ) [read]
void print_gdb_configuration ( struct ui_file )
void print_gdb_version ( struct ui_file )

Definition at line 1094 of file top.c.

References _, fprintf_filtered(), host_name, PKGVERSION, REPORT_BUGS_TO, target_name, and version.

Referenced by captured_main(), and show_version().

void quit_command ( char *  ,
int   
)
int quit_confirm ( void  )
void quit_cover ( void  )
void quit_force ( char *  ,
int   
)
void read_command_file ( FILE *  )

Definition at line 304 of file top.c.

References command_loop(), do_cleanups(), do_restore_instream_cleanup(), instream, and make_cleanup().

Referenced by script_from_file().

void set_history ( char *  ,
int   
)

Definition at line 1556 of file top.c.

References _, gdb_stdout, help_list(), printf_unfiltered(), and sethistlist.

Referenced by _initialize_cli_cmds().

void set_prompt ( const char *  s)

Definition at line 1263 of file top.c.

References p, top_prompt, and xfree().

Referenced by init_main().

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

Definition at line 1465 of file top.c.

References Hist_print, line, offset, parse_and_eval_long(), and printf_filtered().

Referenced by _initialize_cli_cmds().

void show_history ( char *  ,
int   
)

Definition at line 1564 of file top.c.

References cmd_show_list(), and showhistlist.

Referenced by _initialize_cli_cmds().


Variable Documentation

Definition at line 98 of file top.c.

Referenced by ATTRIBUTE_PRINTF(), and init_main().

char gdb_dirbuf[1024]

Definition at line 125 of file top.c.

Referenced by captured_main(), cd_command(), mi_cmd_env_pwd(), and pwd_command().

const char gdbinit[]

Definition at line 84 of file top.c.

Referenced by file_is_auto_load_safe(), get_init_files(), and init_cli_cmds().

Definition at line 683 of file top.c.

Referenced by _initialize_cli_cmds(), command_line_handler(), command_line_input(), and init_main().

Definition at line 118 of file top.c.

Referenced by do_restore_user_call_depth(), execute_user_command(), and input_from_terminal_p().

Definition at line 86 of file top.c.

Referenced by _initialize_check_for_gdb_ini(), captured_main(), and gdbtk_init().

FILE* instream
char* lim_at_start

Definition at line 84 of file symfile.c.

Referenced by captured_main(), and symbol_file_add_with_addrs().

Definition at line 137 of file top.c.

Referenced by captured_main(), command_line_handler(), and command_line_input().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines