1 /* Definitions used by event-top.c, for GDB, the GNU debugger.
3 Copyright (C) 1999, 2001, 2003, 2007-2012 Free Software Foundation,
6 Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
26 struct cmd_list_element;
28 /* Exported functions from event-top.c.
29 FIXME: these should really go into top.h. */
31 extern void display_gdb_prompt (char *new_prompt);
32 void gdb_setup_readline (void);
33 void gdb_disable_readline (void);
34 extern void async_init_signals (void);
35 extern void set_async_editing_command (char *args, int from_tty,
36 struct cmd_list_element *c);
38 /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */
42 #define STOP_SIGNAL SIGTSTP
43 extern void handle_stop_sig (int sig);
46 extern void handle_sigint (int sig);
47 extern void handle_sigterm (int sig);
48 extern void gdb_readline2 (void *client_data);
49 extern void async_request_quit (void *arg);
50 extern void stdin_event_handler (int error, void *client_data);
51 extern void async_disable_stdin (void);
52 extern void async_enable_stdin (void);
54 /* Exported variables from event-top.c.
55 FIXME: these should really go into top.h. */
57 extern int async_command_editing_p;
58 extern int exec_done_display_p;
59 extern char *async_annotation_suffix;
60 extern struct prompts the_prompts;
61 extern void (*call_readline) (void *);
62 extern void (*input_handler) (char *);
64 extern void (*after_char_processing_hook) (void);
66 extern void cli_command_loop (void);