GDB (xrefs)
|
#include <signal.h>
Go to the source code of this file.
Functions | |
void | display_gdb_prompt (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 | 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) |
void async_disable_stdin | ( | void | ) |
Definition at line 400 of file event-top.c.
References sync_execution.
Referenced by advance_command(), attach_command(), continue_command(), finish_command(), jump_command(), run_command_1(), signal_command(), step_1(), and until_command().
void async_enable_stdin | ( | void | ) |
Definition at line 383 of file event-top.c.
References sync_execution, and target_terminal_ours.
Referenced by attach_command(), attach_command_post_wait(), inferior_event_handler(), normal_stop(), and start_event_loop().
void async_init_signals | ( | void | ) |
Definition at line 731 of file event-top.c.
References async_float_handler(), async_request_quit(), create_async_signal_handler(), handle_sigfpe(), handle_sigint(), and handle_sigterm().
Referenced by gdb_init().
void async_request_quit | ( | void * | arg | ) |
Definition at line 812 of file event-top.c.
References check_quit_flag(), and quit().
Referenced by async_init_signals().
void cli_command_loop | ( | void * | ) |
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().
void display_gdb_prompt | ( | char * | new_prompt | ) |
Definition at line 233 of file event-top.c.
References annotate_display_prompt(), async_command_editing_p, current_interp_display_prompt_p(), do_cleanups(), fputs_unfiltered(), free_current_contents(), gdb_flush(), gdb_stdout, input_handler, make_cleanup(), reset_command_nest_depth(), sync_execution, and top_level_prompt().
Referenced by cli_command_loop(), command_line_handler(), fetch_inferior_event(), gdb_readline_wrapper(), inferior_event_handler(), interp_set(), and start_event_loop().
void gdb_disable_readline | ( | void | ) |
Definition at line 1010 of file event-top.c.
References delete_file_handler(), 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 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 | ) |
Definition at line 952 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, 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 779 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(), interrupt_query(), and record_full_wait_1().
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().
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, |
void * | client_data | ||
) |
Definition at line 363 of file event-top.c.
References _, call_readline, 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 155 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 111 of file event-top.c.
Referenced by command_line_handler(), init_main(), and top_level_prompt().
Definition at line 107 of file event-top.c.
Referenced by change_line_handler(), display_gdb_prompt(), gdb_readline_wrapper_line(), gdb_setup_readline(), init_main(), and mi_interpreter_resume().
void(* call_readline)(void *) |
Definition at line 97 of file event-top.c.
Referenced by change_line_handler(), gdb_setup_readline(), mi_interpreter_resume(), and stdin_event_handler().
Definition at line 115 of file event-top.c.
Referenced by fetch_inferior_event(), and init_main().
Definition at line 119 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 96 of file event-top.c.
Referenced by change_line_handler(), display_gdb_prompt(), gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), gdb_setup_readline(), and mi_interpreter_resume().
struct prompts the_prompts |