GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/event-top.c File Reference
#include "defs.h"
#include "top.h"
#include "inferior.h"
#include "target.h"
#include "terminal.h"
#include "event-loop.h"
#include "event-top.h"
#include "interps.h"
#include <signal.h>
#include "exceptions.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

Defines

#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)
void cli_command_loop (void *data)
void display_gdb_prompt (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
static struct
async_signal_handler
sigint_token
static struct
async_signal_handler
sigfpe_token
static int more_to_come = 0
struct readline_input_state readline_input_state
void(* after_char_processing_hook )(void)

Define Documentation

#define SERVER_COMMAND_LENGTH   7

Function Documentation

void async_disable_stdin ( void  )
void async_enable_stdin ( void  )
static void async_float_handler ( gdb_client_data  arg) [static]

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

References _, and error().

Referenced by async_init_signals().

void async_init_signals ( void  )

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

References check_quit_flag(), and quit().

Referenced by async_init_signals().

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

Definition at line 174 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 ( char *  new_prompt)
void gdb_disable_readline ( void  )
void gdb_readline2 ( gdb_client_data  client_data)

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

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

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

void gdb_setup_readline ( void  )
static void handle_sigfpe ( int  sig) [static]

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

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

References handle_sigterm(), instream, and quit_force().

Referenced by async_init_signals(), and handle_sigterm().

static void rl_callback_read_char_wrapper ( gdb_client_data  client_data) [static]

Definition at line 162 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 942 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

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

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

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

Referenced by fetch_inferior_event(), and init_main().

void(* input_handler)(char *)
int more_to_come = 0 [static]

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

Referenced by command_line_handler().

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

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines