GDB (xrefs)
|
#include <signal.h>
Go to the source code of this file.
Functions | |
void | display_gdb_prompt (const char *new_prompt) |
void | gdb_setup_readline (void) |
void | gdb_disable_readline (void) |
void | async_init_signals (void) |
void | set_async_editing_command (char *args, int from_tty, struct cmd_list_element *c) |
void | handle_sigint (int sig) |
void | handle_sigterm (int sig) |
void | gdb_readline2 (void *client_data) |
void | async_request_quit (void *arg) |
void | stdin_event_handler (int error, void *client_data) |
void | async_disable_stdin (void) |
void | async_enable_stdin (void) |
void | gdb_rl_callback_handler_remove (void) |
void | gdb_rl_callback_handler_install (const char *prompt) |
void | gdb_rl_callback_handler_reinstall (void) |
void | cli_command_loop (void *) |
Variables | |
int | async_command_editing_p |
int | exec_done_display_p |
char * | async_annotation_suffix |
struct prompts | the_prompts |
void(* | call_readline )(void *) |
void(* | input_handler )(char *) |
int | input_fd |
void(* | after_char_processing_hook )(void) |
int | call_stdin_event_handler_again_p |
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 | ) |
Definition at line 442 of file event-top.c.
References sync_execution, and target_terminal_ours().
Referenced by attach_command_post_wait(), handle_command_errors(), normal_stop(), and start_event_loop().
void async_init_signals | ( | void | ) |
Definition at line 790 of file event-top.c.
References async_float_handler(), async_request_quit(), async_sigterm_handler(), create_async_signal_handler(), handle_sigfpe(), handle_sigint(), and handle_sigterm().
Referenced by gdb_init().
void async_request_quit | ( | void * | arg | ) |
Definition at line 892 of file event-top.c.
References check_quit_flag(), and quit().
Referenced by async_init_signals().
void cli_command_loop | ( | void * | ) |
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().
void display_gdb_prompt | ( | const char * | new_prompt | ) |
Definition at line 291 of file event-top.c.
References annotate_display_prompt(), async_command_editing_p, do_cleanups(), fputs_unfiltered(), free_current_contents(), gdb_flush(), gdb_rl_callback_handler_install(), gdb_rl_callback_handler_remove(), gdb_stdout, make_cleanup(), reset_command_nest_depth(), sync_execution, and top_level_prompt().
Referenced by cli_command_loop(), cli_on_command_error(), cli_on_sync_execution_done(), command_line_handler(), gdb_readline_wrapper(), tui_on_command_error(), and tui_on_sync_execution_done().
void gdb_disable_readline | ( | void | ) |
Definition at line 1094 of file event-top.c.
References delete_file_handler(), gdb_rl_callback_handler_remove(), gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, input_fd, and ui_file_delete().
Referenced by cli_interpreter_suspend(), and mi_interpreter_suspend().
void gdb_readline2 | ( | void * | 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 | ) |
Definition at line 249 of file event-top.c.
References callback_handler_installed, gdb_assert, and input_handler.
Referenced by display_gdb_prompt(), and gdb_rl_callback_handler_reinstall().
void gdb_rl_callback_handler_reinstall | ( | void | ) |
Definition at line 263 of file event-top.c.
References callback_handler_installed, and gdb_rl_callback_handler_install().
Referenced by reinstall_readline_callback_handler_cleanup().
void gdb_rl_callback_handler_remove | ( | void | ) |
Definition at line 238 of file event-top.c.
References callback_handler_installed.
Referenced by change_line_handler(), display_gdb_prompt(), gdb_disable_readline(), and gdb_readline_wrapper_line().
void gdb_setup_readline | ( | void | ) |
Definition at line 1036 of file event-top.c.
References add_file_handler(), async_command_editing_p, batch_silent, call_readline, command_line_handler(), gdb_readline2(), gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, input_fd, input_handler, instream, ISATTY, rl_callback_read_char_wrapper(), stderr_fileopen(), stdin_event_handler(), and stdio_fileopen().
Referenced by cli_interpreter_resume(), mi_interpreter_resume(), and tui_resume().
void handle_sigint | ( | int | sig | ) |
Definition at line 839 of file event-top.c.
References gdb_call_async_signal_handler(), handle_sigint(), immediate_quit, and set_quit_flag().
Referenced by async_cleanup_sigint_signal_handler(), async_init_signals(), handle_sigint(), install_gdb_sigint_handler(), and record_full_wait_1().
void handle_sigterm | ( | int | sig | ) |
Definition at line 875 of file event-top.c.
References handle_sigterm(), mark_async_signal_handler(), set_quit_flag(), sync_quit_force_run, and target_can_async_p.
Referenced by async_init_signals(), and handle_sigterm().
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, |
void * | client_data | ||
) |
Definition at line 416 of file event-top.c.
References _, call_stdin_event_handler_again_p, delete_file_handler(), discard_all_continuations(), discard_all_intermediate_continuations(), input_fd, instream, printf_unfiltered(), and quit_command().
Referenced by gdb_setup_readline(), linux_nat_terminal_ours(), and remote_terminal_ours().
void(* after_char_processing_hook) (void) |
Definition at line 162 of file event-top.c.
Referenced by gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), gdb_readline_wrapper_line(), gdb_rl_operate_and_get_next(), gdb_rl_operate_and_get_next_completion(), rl_callback_read_char_wrapper(), and start_event_loop().
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 |
Definition at line 108 of file event-top.c.
Referenced by change_line_handler(), display_gdb_prompt(), gdb_readline_wrapper_line(), gdb_setup_readline(), init_main(), mi_interpreter_resume(), reinstall_readline_callback_handler_cleanup(), and tui_getc().
void(* call_readline) (void *) |
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 exec_done_display_p |
Definition at line 116 of file event-top.c.
Referenced by fetch_inferior_event(), and init_main().
int input_fd |
Definition at line 120 of file event-top.c.
Referenced by gdb_disable_readline(), gdb_setup_readline(), linux_nat_terminal_inferior(), linux_nat_terminal_ours(), remote_terminal_inferior(), remote_terminal_ours(), and stdin_event_handler().
void(* input_handler) (char *) |
Definition at line 97 of file event-top.c.
Referenced by change_line_handler(), gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), gdb_rl_callback_handler_install(), gdb_setup_readline(), and mi_interpreter_resume().
struct prompts the_prompts |