]>
Commit | Line | Data |
---|---|---|
fe97fe9c AC |
1 | /* Definitions used by event-top.c, for GDB, the GNU debugger. |
2 | ||
0b302171 JB |
3 | Copyright (C) 1999, 2001, 2003, 2007-2012 Free Software Foundation, |
4 | Inc. | |
fe97fe9c | 5 | |
c2c6d25f JM |
6 | Written by Elena Zannoni <[email protected]> of Cygnus Solutions. |
7 | ||
8 | This file is part of GDB. | |
9 | ||
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 | |
a9762ec7 | 12 | the Free Software Foundation; either version 3 of the License, or |
c2c6d25f JM |
13 | (at your option) any later version. |
14 | ||
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. | |
19 | ||
20 | You should have received a copy of the GNU General Public License | |
a9762ec7 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
c2c6d25f | 22 | |
fe97fe9c AC |
23 | #ifndef EVENT_TOP_H |
24 | #define EVENT_TOP_H | |
25 | ||
da3331ec AC |
26 | struct cmd_list_element; |
27 | ||
0963b4bd | 28 | /* Exported functions from event-top.c. |
0af5533d | 29 | FIXME: these should really go into top.h. */ |
c2c6d25f JM |
30 | |
31 | extern void display_gdb_prompt (char *new_prompt); | |
4389a95a AC |
32 | void gdb_setup_readline (void); |
33 | void gdb_disable_readline (void); | |
c2c6d25f | 34 | extern void async_init_signals (void); |
0af5533d MK |
35 | extern void set_async_editing_command (char *args, int from_tty, |
36 | struct cmd_list_element *c); | |
c2c6d25f JM |
37 | |
38 | /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */ | |
39 | #ifndef STOP_SIGNAL | |
72290732 | 40 | #include <signal.h> |
c2c6d25f JM |
41 | #ifdef SIGTSTP |
42 | #define STOP_SIGNAL SIGTSTP | |
43 | extern void handle_stop_sig (int sig); | |
44 | #endif | |
45 | #endif | |
46 | extern void handle_sigint (int sig); | |
a7266fef | 47 | extern void handle_sigterm (int sig); |
2acceee2 JM |
48 | extern void gdb_readline2 (void *client_data); |
49 | extern void mark_async_signal_handler_wrapper (void *token); | |
50 | extern void async_request_quit (void *arg); | |
51 | extern void stdin_event_handler (int error, void *client_data); | |
6426a772 | 52 | extern void async_disable_stdin (void); |
712af3be | 53 | extern void async_enable_stdin (void); |
c2c6d25f JM |
54 | |
55 | /* Exported variables from event-top.c. | |
0af5533d | 56 | FIXME: these should really go into top.h. */ |
c2c6d25f JM |
57 | |
58 | extern int async_command_editing_p; | |
59 | extern int exec_done_display_p; | |
60 | extern char *async_annotation_suffix; | |
c2c6d25f | 61 | extern struct prompts the_prompts; |
2acceee2 | 62 | extern void (*call_readline) (void *); |
c2c6d25f JM |
63 | extern void (*input_handler) (char *); |
64 | extern int input_fd; | |
467d8519 | 65 | extern void (*after_char_processing_hook) (void); |
fe97fe9c AC |
66 | |
67 | extern void cli_command_loop (void); | |
68 | ||
69 | #endif |