GDB (xrefs)
|
#include <signal.h>
Go to the source code of this file.
Classes | |
class | scoped_segv_handler_restore |
Typedefs | |
typedef void(* | segv_handler_t) (int) |
Functions | |
void | display_gdb_prompt (const char *new_prompt) |
void | gdb_setup_readline (int) |
void | gdb_disable_readline (void) |
void | gdb_init_signals (void) |
void | change_line_handler (int) |
void | command_line_handler (gdb::unique_xmalloc_ptr< char > &&rl) |
void | command_handler (const char *command) |
void | handle_sigint (int sig) |
void | handle_sigterm (int sig) |
void | async_request_quit (void *arg) |
void | async_disable_stdin (void) |
void | async_enable_stdin (void) |
void | gdb_readline_no_editing_callback (void *client_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 | gdb_rl_deprep_term_function (void) |
Variables | |
bool | set_editing_cmd_var |
bool | exec_done_display_p |
struct prompts | the_prompts |
void(* | after_char_processing_hook )(void) |
int | call_stdin_event_handler_again_p |
typedef void(* segv_handler_t) (int) |
Definition at line 78 of file event-top.h.
void async_disable_stdin | ( | void | ) |
Definition at line 587 of file event-top.c.
References current_ui, PROMPT_BLOCKED, ui::prompt_state, and ui::unregister_file_handler().
Referenced by all_uis_on_sync_execution_starting().
void async_enable_stdin | ( | void | ) |
Definition at line 571 of file event-top.c.
References current_ui, target_terminal::ours(), PROMPT_BLOCKED, PROMPT_NEEDED, ui::prompt_state, and ui::register_file_handler().
Referenced by execute_gdb_command(), handle_command_errors(), mi_execute_command(), normal_stop(), and start_event_loop().
void async_request_quit | ( | void * | arg | ) |
void change_line_handler | ( | int | editing | ) |
Definition at line 278 of file event-top.c.
References ui::call_readline, ui::command_editing, command_interp(), current_ui, gdb_readline_no_editing_callback(), gdb_rl_callback_handler_remove(), gdb_rl_callback_read_char_wrapper(), interp_supports_command_editing(), main_ui, and top_level_interpreter().
Referenced by set_editing().
void command_handler | ( | const char * | command | ) |
Definition at line 601 of file event-top.c.
References bpstat_do_actions(), current_ui, execute_command(), ui::instream, reinitialize_more_filter(), and ui::stdin_stream.
Referenced by command_line_handler(), and read_command_file().
void command_line_handler | ( | gdb::unique_xmalloc_ptr< char > && | rl | ) |
Definition at line 781 of file event-top.c.
References command_handler(), current_ui, display_gdb_prompt(), execute_command(), get_command_line_buffer(), handle_line_of_input(), ui::line_buffer, printf_unfiltered(), PROMPT_NEEDED, ui::prompt_state, and PROMPTED.
Referenced by cli_interp::resume(), and tui_command_line_handler().
void display_gdb_prompt | ( | const char * | new_prompt | ) |
Definition at line 385 of file event-top.c.
References annotate_display_prompt(), ui::command_editing, current_ui, gdb_flush(), gdb_rl_callback_handler_install(), gdb_rl_callback_handler_remove(), gdb_stdout, printf_unfiltered(), PROMPT_BLOCKED, PROMPT_NEEDED, ui::prompt_state, PROMPTED, reset_command_nest_depth(), and top_level_prompt().
Referenced by cli_base_on_command_error(), cli_base_on_sync_execution_done(), command_line_handler(), gdb_readline_wrapper(), and cli_interp_base::pre_command_loop().
void gdb_disable_readline | ( | void | ) |
Definition at line 1377 of file event-top.c.
References ui::command_editing, current_ui, gdb_rl_callback_handler_remove(), and ui::unregister_file_handler().
Referenced by cli_interp::suspend(), mi_interp::suspend(), tui_interp::suspend(), and undo_terminal_modifications_before_exit().
void gdb_init_signals | ( | void | ) |
Definition at line 1058 of file event-top.c.
References async_request_quit(), async_sigterm_handler(), async_sigterm_token, create_async_signal_handler(), handle_fatal_signal(), handle_sigint(), handle_sigterm(), initialize_async_signal_handlers(), install_handle_sigsegv(), install_sigint_handler(), make_serial_event(), quit_serial_event, and sigint_token.
Referenced by gdb_init().
void gdb_readline_no_editing_callback | ( | void * | client_data | ) |
void gdb_rl_callback_handler_install | ( | const char * | prompt | ) |
Definition at line 339 of file event-top.c.
References callback_handler_installed, current_ui, gdb_rl_callback_handler(), and main_ui.
Referenced by display_gdb_prompt(), and gdb_rl_callback_handler_reinstall().
void gdb_rl_callback_handler_reinstall | ( | void | ) |
Definition at line 355 of file event-top.c.
References callback_handler_installed, current_ui, gdb_rl_callback_handler_install(), and main_ui.
Referenced by reinstall_readline_callback_handler_cleanup().
void gdb_rl_callback_handler_remove | ( | void | ) |
Definition at line 326 of file event-top.c.
References callback_handler_installed, current_ui, and main_ui.
Referenced by change_line_handler(), display_gdb_prompt(), gdb_disable_readline(), and gdb_readline_wrapper_line().
void gdb_rl_deprep_term_function | ( | void | ) |
Definition at line 756 of file event-top.c.
References printf_unfiltered().
Referenced by init_main().
void gdb_setup_readline | ( | int | editing | ) |
Definition at line 1336 of file event-top.c.
References ui::call_readline, ui::command_editing, current_ui, gdb_readline_no_editing_callback(), gdb_rl_callback_read_char_wrapper(), ui::instream, ISATTY, main_ui, and ui::register_file_handler().
Referenced by cli_interp::resume(), mi_interp::resume(), and tui_interp::resume().
void handle_sigint | ( | int | sig | ) |
Definition at line 1152 of file event-top.c.
References handle_sigint(), mark_async_signal_handler(), set_quit_flag(), and sigint_token.
Referenced by gdb_init_signals(), handle_sigint(), install_gdb_sigint_handler(), and record_full_wait_1().
void handle_sigterm | ( | int | sig | ) |
Definition at line 1217 of file event-top.c.
References async_sigterm_token, handle_sigterm(), mark_async_signal_handler(), set_quit_flag(), and sync_quit_force_run.
Referenced by gdb_init_signals(), and handle_sigterm().
|
extern |
Definition at line 134 of file event-top.c.
Referenced by gdb_readline_wrapper(), gdb_readline_wrapper_line(), gdb_rl_callback_read_char_wrapper_noexcept(), gdb_rl_operate_and_get_next(), gdb_rl_operate_and_get_next_completion(), start_event_loop(), and gdb_readline_wrapper_cleanup::~gdb_readline_wrapper_cleanup().
|
extern |
Definition at line 99 of file event-top.c.
Referenced by start_sequence(), stdin_event_handler(), and tui_getc_1().
|
extern |
Definition at line 94 of file event-top.c.
Referenced by fetch_inferior_event(), and init_main().
|
extern |
Definition at line 90 of file event-top.c.
Referenced by init_main(), and set_editing().
|
extern |