GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-7.10/gdb/event-top.c File Reference
#include "defs.h"
#include "top.h"
#include "inferior.h"
#include "infrun.h"
#include "target.h"
#include "terminal.h"
#include "event-loop.h"
#include "event-top.h"
#include "interps.h"
#include <signal.h>
#include "cli/cli-script.h"
#include "main.h"
#include "gdbthread.h"
#include "observer.h"
#include "continuations.h"
#include "gdbcmd.h"
#include "annotate.h"
#include "maint.h"
#include "readline/readline.h"
#include "readline/history.h"

Go to the source code of this file.

Classes

struct  readline_input_state
 

Macros

#define SERVER_COMMAND_LENGTH   7
 

Functions

static void rl_callback_read_char_wrapper (gdb_client_data client_data)
 
static void command_line_handler (char *rl)
 
static void change_line_handler (void)
 
static void command_handler (char *command)
 
static char * top_level_prompt (void)
 
static void handle_sigfpe (int sig)
 
static void async_float_handler (gdb_client_data)
 
static void async_sigterm_handler (gdb_client_data arg)
 
void cli_command_loop (void *data)
 
void gdb_rl_callback_handler_remove (void)
 
void gdb_rl_callback_handler_install (const char *prompt)
 
void gdb_rl_callback_handler_reinstall (void)
 
void display_gdb_prompt (const char *new_prompt)
 
void stdin_event_handler (int error, gdb_client_data client_data)
 
void async_enable_stdin (void)
 
void async_disable_stdin (void)
 
void gdb_readline2 (gdb_client_data client_data)
 
void async_init_signals (void)
 
void handle_sigint (int sig)
 
void handle_sigterm (int sig)
 
void async_request_quit (gdb_client_data arg)
 
void set_async_editing_command (char *args, int from_tty, struct cmd_list_element *c)
 
void gdb_setup_readline (void)
 
void gdb_disable_readline (void)
 

Variables

void(* input_handler )(char *)
 
void(* call_readline )(gdb_client_data)
 
int async_command_editing_p
 
char * async_annotation_suffix
 
int exec_done_display_p = 0
 
int input_fd
 
int call_stdin_event_handler_again_p
 
static struct async_signal_handlersigint_token
 
static struct async_signal_handlersigfpe_token
 
static struct async_signal_handlerasync_sigterm_token
 
static int more_to_come = 0
 
struct readline_input_state readline_input_state
 
void(* after_char_processing_hook )(void)
 
static int callback_handler_installed
 
volatile int sync_quit_force_run
 

Macro Definition Documentation

#define SERVER_COMMAND_LENGTH   7

Referenced by command_line_handler().

Function Documentation

void async_disable_stdin ( void  )

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

References sync_execution.

Referenced by prepare_execution_command(), and run_inferior_call().

void async_enable_stdin ( void  )
static void async_float_handler ( gdb_client_data  arg)
static

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

References _, and error().

Referenced by async_init_signals().

void async_init_signals ( void  )
void async_request_quit ( gdb_client_data  arg)

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

References check_quit_flag(), and quit().

Referenced by async_init_signals().

static void async_sigterm_handler ( gdb_client_data  arg)
static

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

References instream, and quit_force().

Referenced by async_init_signals().

static void change_line_handler ( void  )
static
void cli_command_loop ( void *  data)

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

References display_gdb_prompt(), and start_event_loop().

Referenced by _initialize_cli_interp(), and _initialize_tui_interp().

static void command_handler ( char *  command)
static
static void command_line_handler ( char *  rl)
static
void display_gdb_prompt ( const char *  new_prompt)
void gdb_disable_readline ( void  )
void gdb_readline2 ( gdb_client_data  client_data)

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

References instream, ISATTY, xfree(), xmalloc(), and xrealloc().

Referenced by change_line_handler(), gdb_setup_readline(), and mi_interpreter_resume().

void gdb_rl_callback_handler_install ( const char *  prompt)
void gdb_rl_callback_handler_reinstall ( void  )
void gdb_rl_callback_handler_remove ( void  )
void gdb_setup_readline ( void  )
static void handle_sigfpe ( int  sig)
static

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

References mark_async_signal_handler().

Referenced by async_init_signals().

void handle_sigint ( int  sig)
void handle_sigterm ( int  sig)
static void rl_callback_read_char_wrapper ( gdb_client_data  client_data)
static

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

References after_char_processing_hook.

Referenced by change_line_handler(), and gdb_setup_readline().

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

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

References change_line_handler().

Referenced by init_main().

void stdin_event_handler ( int  error,
gdb_client_data  client_data 
)
static char * top_level_prompt ( void  )
static

Variable Documentation

void(* after_char_processing_hook) (void)
char* async_annotation_suffix

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

Referenced by command_line_handler(), init_main(), and top_level_prompt().

int async_command_editing_p
struct async_signal_handler* async_sigterm_token
static

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

void(* call_readline) (gdb_client_data)

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

Referenced by change_line_handler(), gdb_setup_readline(), and mi_interpreter_resume().

int call_stdin_event_handler_again_p

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

Referenced by stdin_event_handler(), and tui_getc().

int callback_handler_installed
static
int exec_done_display_p = 0

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

Referenced by fetch_inferior_event(), and init_main().

int input_fd
void(* input_handler) (char *)
int more_to_come = 0
static

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

Referenced by command_line_handler().

struct async_signal_handler* sigfpe_token
static

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

struct async_signal_handler* sigint_token
static

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

volatile int sync_quit_force_run

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

Referenced by handle_sigterm(), maybe_quit(), and quit().