GDB (xrefs)

/tmp/gdb-8.1/gdb/event-top.h
Go to the documentation of this file.
1 /* Definitions used by event-top.c, for GDB, the GNU debugger.
2
3 Copyright (C) 1999-2018 Free Software Foundation, Inc.
4
5 Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21
22 #ifndef EVENT_TOP_H
23 #define EVENT_TOP_H
24
25 #include <signal.h>
26
27 struct cmd_list_element;
28
29 /* Exported functions from event-top.c.
30 FIXME: these should really go into top.h. */
31
32 extern void display_gdb_prompt (const char *new_prompt);
33 extern void gdb_setup_readline (int);
34 extern void gdb_disable_readline (void);
35 extern void async_init_signals (void);
36 extern void change_line_handler (int);
37
38 extern void command_line_handler (char *rl);
39 extern void command_handler (const char *command);
40
41 #ifdef SIGTSTP
42 extern void handle_sigtstp (int sig);
43 #endif
44
45 extern void handle_sigint (int sig);
46 extern void handle_sigterm (int sig);
47 extern void async_request_quit (void *arg);
48 extern void stdin_event_handler (int error, void *client_data);
49 extern void async_disable_stdin (void);
50 extern void async_enable_stdin (void);
51
52 /* Exported variables from event-top.c.
53 FIXME: these should really go into top.h. */
54
55 extern int set_editing_cmd_var;
56 extern int exec_done_display_p;
57 extern struct prompts the_prompts;
58 extern void (*after_char_processing_hook) (void);
59 extern int call_stdin_event_handler_again_p;
60 extern void gdb_readline_no_editing_callback (void *client_data);
61
62 /* Wrappers for rl_callback_handler_remove and
63 rl_callback_handler_install that keep track of whether the callback
64 handler is installed in readline. Do not call the readline
65 versions directly. */
66 extern void gdb_rl_callback_handler_remove (void);
67 extern void gdb_rl_callback_handler_install (const char *prompt);
68
69 /* Reinstall the readline callback handler (with no prompt), if not
70 currently installed. */
71 extern void gdb_rl_callback_handler_reinstall (void);
72
73 #endif
async_disable_stdin
void async_disable_stdin(void)
Definition: event-top.c:554
exec_done_display_p
int exec_done_display_p
Definition: event-top.c:93
handle_sigint
void handle_sigint(int sig)
Definition: event-top.c:967
async_request_quit
void async_request_quit(void *arg)
Definition: event-top.c:1044
change_line_handler
void change_line_handler(int)
Definition: event-top.c:246
call_stdin_event_handler_again_p
int call_stdin_event_handler_again_p
Definition: event-top.c:98
stdin_event_handler
void stdin_event_handler(int error, void *client_data)
Definition: event-top.c:471
cmd_list_element
Definition: cli-decode.h:46
after_char_processing_hook
void(* after_char_processing_hook)(void)
Definition: event-top.c:121
display_gdb_prompt
void display_gdb_prompt(const char *new_prompt)
Definition: event-top.c:353
gdb_rl_callback_handler_reinstall
void gdb_rl_callback_handler_reinstall(void)
Definition: event-top.c:323
set_editing_cmd_var
int set_editing_cmd_var
Definition: event-top.c:89
gdb_rl_callback_handler_install
void gdb_rl_callback_handler_install(const char *prompt)
Definition: event-top.c:307
handle_sigterm
void handle_sigterm(int sig)
Definition: event-top.c:1032
async_init_signals
void async_init_signals(void)
Definition: event-top.c:872
async_enable_stdin
void async_enable_stdin(void)
Definition: event-top.c:538
gdb_setup_readline
void gdb_setup_readline(int)
Definition: event-top.c:1176
the_prompts
struct prompts the_prompts
gdb_readline_no_editing_callback
void gdb_readline_no_editing_callback(void *client_data)
Definition: event-top.c:786
gdb_disable_readline
void gdb_disable_readline(void)
Definition: event-top.c:1226
command_handler
void command_handler(const char *command)
Definition: event-top.c:568
error
void error(const char *fmt,...)
Definition: errors.c:38
gdb_rl_callback_handler_remove
void gdb_rl_callback_handler_remove(void)
Definition: event-top.c:294
command_line_handler
void command_line_handler(char *rl)
Definition: event-top.c:749