GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/top.c File Reference
#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 "exceptions.h"
#include <signal.h>
#include "target.h"
#include "breakpoint.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "language.h"
#include "terminal.h"
#include "annotate.h"
#include "completer.h"
#include "top.h"
#include "version.h"
#include "serial.h"
#include "doublest.h"
#include "gdb_assert.h"
#include "main.h"
#include "event-loop.h"
#include "gdbthread.h"
#include "python/python.h"
#include "interps.h"
#include "observer.h"
#include "maint.h"
#include "filenames.h"
#include "readline/readline.h"
#include "readline/history.h"
#include <sys/types.h>
#include "event-top.h"
#include "gdb_string.h"
#include "gdb_stat.h"
#include <ctype.h>
#include "ui-out.h"
#include "cli-out.h"
#include "tracepoint.h"

Go to the source code of this file.

Defines

#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 SERVER_COMMAND_LENGTH   7
#define DO_TRY   TRY_CATCH (ex, RETURN_MASK_ALL)
#define DO_PRINT_EX
#define Hist_print   10

Functions

void initialize_all_files (void)
void do_restore_instream_cleanup (void *stream)
void read_command_file (FILE *stream)
struct cleanup * prepare_execute_command (void)
void check_frame_language_change (void)
void execute_command (char *p, int from_tty)
char * execute_command_to_string (char *p, int from_tty)
void command_loop (void)
void dont_repeat (void)
struct cleanup * prevent_dont_repeat (void)
char * gdb_readline (char *prompt_arg)
char * gdb_readline_wrapper (char *prompt)
char * command_line_input (char *prompt_arg, int repeat, 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)
int quit_confirm (void)
void quit_force (char *args, int from_tty)
int input_from_terminal_p (void)
void show_commands (char *args, int from_tty)
void set_history (char *args, int from_tty)
void show_history (char *args, int from_tty)
void set_verbose (char *args, int from_tty, struct cmd_list_element *c)
void init_history (void)
void gdb_init (char *argv0)

Variables

const char gdbinit [] = GDBINIT
int inhibit_gdbinit = 0
int use_windows = 0
char lang_frame_mismatch_warn []
int confirm = 1
FILE * instream
int in_user_command
char * current_directory
char gdb_dirbuf [1024]
void(* window_hook )(FILE *, char *)
char * saved_command_line
int saved_command_line_size = 100
int server_command
int remote_timeout = 2
int remote_debug = 0
void(* deprecated_init_ui_hook )(char *argv0)
int(* deprecated_ui_loop_hook )(int)
void(* deprecated_print_frame_info_listing_hook )(struct symtab *s, int line, int stopline, int noerror)
int(* deprecated_query_hook )(const char *, va_list)
void(* deprecated_warning_hook )(const char *, va_list)
void(* deprecated_readline_begin_hook )(char *,...)
char *(* deprecated_readline_hook )(char *)
void(* deprecated_readline_end_hook )(void)
void(* deprecated_attach_hook )(void)
void(* deprecated_detach_hook )(void)
void(* deprecated_interactive_hook )(void)
void(* deprecated_register_changed_hook )(int regno)
ptid_t(* deprecated_target_wait_hook )(ptid_t ptid, struct target_waitstatus *status, int options)
void(* deprecated_call_command_hook )(struct cmd_list_element *c, char *cmd, int from_tty)
void(* deprecated_set_hook )(struct cmd_list_element *c)
void(* deprecated_context_hook )(int id)
int source_line_number
const char * source_file_name
void(* pre_init_ui_hook )(void)
int history_expansion_p
int info_verbose = 0

Define Documentation

#define DEFAULT_PROMPT   "(gdb) "

Definition at line 79 of file top.c.

#define DO_PRINT_EX
Value:
if (ex.reason < 0) \
    exception_print (gdb_stderr, ex)
#define DO_TRY   TRY_CATCH (ex, RETURN_MASK_ALL)
#define Hist_print   10

Definition at line 1463 of file top.c.

#define PREFIX (   X)    the_prompts.prompt_stack[the_prompts.top + X].prefix

Definition at line 73 of file top.c.

#define PROMPT (   X)    the_prompts.prompt_stack[the_prompts.top + X].prompt

Definition at line 72 of file top.c.

#define SERVER_COMMAND_LENGTH   7
#define SUFFIX (   X)    the_prompts.prompt_stack[the_prompts.top + X].suffix

Definition at line 74 of file top.c.


Function Documentation

void check_frame_language_change ( void  )

Definition at line 348 of file top.c.

char* command_line_input ( char *  prompt_arg,
int  repeat,
char *  annotation_suffix 
)

Definition at line 887 of file top.c.

void command_loop ( void  )

Definition at line 542 of file top.c.

void do_restore_instream_cleanup ( void *  stream)

Definition at line 296 of file top.c.

void dont_repeat ( void  )

Definition at line 587 of file top.c.

void execute_command ( char *  p,
int  from_tty 
)

Definition at line 389 of file top.c.

char* execute_command_to_string ( char *  p,
int  from_tty 
)

Definition at line 496 of file top.c.

void gdb_init ( char *  argv0)

Definition at line 1814 of file top.c.

char* gdb_readline ( char *  prompt_arg)

Definition at line 620 of file top.c.

char* gdb_readline_wrapper ( char *  prompt)

Definition at line 792 of file top.c.

char* get_prompt ( void  )

Definition at line 1255 of file top.c.

void init_history ( void  )

Definition at line 1599 of file top.c.

void initialize_all_files ( void  )

Definition at line 255 of file init.c.

Definition at line 1435 of file top.c.

struct cleanup* prepare_execute_command ( void  ) [read]

Definition at line 326 of file top.c.

struct cleanup* prevent_dont_repeat ( void  ) [read]

Definition at line 603 of file top.c.

void print_gdb_configuration ( struct ui_file *  stream)

Definition at line 1149 of file top.c.

void print_gdb_version ( struct ui_file *  stream)

Definition at line 1094 of file top.c.

int quit_confirm ( void  )

Definition at line 1336 of file top.c.

void quit_force ( char *  args,
int  from_tty 
)

Definition at line 1366 of file top.c.

void read_command_file ( FILE *  stream)

Definition at line 304 of file top.c.

void set_history ( char *  args,
int  from_tty 
)

Definition at line 1556 of file top.c.

void set_prompt ( const char *  s)

Definition at line 1263 of file top.c.

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

Definition at line 1573 of file top.c.

void show_commands ( char *  args,
int  from_tty 
)

Definition at line 1465 of file top.c.

void show_history ( char *  args,
int  from_tty 
)

Definition at line 1564 of file top.c.


Variable Documentation

int confirm = 1

Definition at line 98 of file top.c.

Definition at line 122 of file top.c.

void(* deprecated_attach_hook)(void)

Definition at line 229 of file top.c.

void(* deprecated_call_command_hook)(struct cmd_list_element *c, char *cmd, int from_tty)

Definition at line 252 of file top.c.

Definition at line 262 of file top.c.

void(* deprecated_detach_hook)(void)

Definition at line 230 of file top.c.

void(* deprecated_init_ui_hook)(char *argv0)

Definition at line 186 of file top.c.

Definition at line 235 of file top.c.

void(* deprecated_print_frame_info_listing_hook)(struct symtab *s, int line, int stopline, int noerror)

Definition at line 198 of file top.c.

int(* deprecated_query_hook)(const char *, va_list)

Definition at line 204 of file top.c.

void(* deprecated_readline_begin_hook)(char *,...)

Definition at line 222 of file top.c.

Definition at line 224 of file top.c.

char*(* deprecated_readline_hook)(char *)

Definition at line 223 of file top.c.

Definition at line 240 of file top.c.

Definition at line 258 of file top.c.

Definition at line 245 of file top.c.

Definition at line 193 of file top.c.

void(* deprecated_warning_hook)(const char *, va_list)

Definition at line 208 of file top.c.

char gdb_dirbuf[1024]

Definition at line 125 of file top.c.

const char gdbinit[] = GDBINIT

Definition at line 84 of file top.c.

Definition at line 683 of file top.c.

Definition at line 118 of file top.c.

Definition at line 1569 of file top.c.

Definition at line 86 of file top.c.

FILE* instream

Definition at line 114 of file top.c.

Definition at line 110 of file language.c.

void(* pre_init_ui_hook)(void)

Definition at line 314 of file top.c.

Definition at line 171 of file top.c.

Definition at line 167 of file top.c.

Definition at line 136 of file top.c.

Definition at line 137 of file top.c.

Definition at line 145 of file top.c.

Definition at line 290 of file top.c.

Definition at line 284 of file top.c.

Definition at line 91 of file top.c.

void(* window_hook)(FILE *, char *)

Definition at line 131 of file top.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines