2011-09-06 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / event-top.h
1 /* Definitions used by event-top.c, for GDB, the GNU debugger.
2
3 Copyright (C) 1999, 2001, 2003, 2007, 2008, 2009, 2010, 2011
4 Free Software Foundation, Inc.
5
6 Written by Elena Zannoni <ezannoni@cygnus.com> 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
12 the Free Software Foundation; either version 3 of the License, or
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
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22
23 #ifndef EVENT_TOP_H
24 #define EVENT_TOP_H
25
26 struct cmd_list_element;
27
28 /* Exported functions from event-top.c.
29 FIXME: these should really go into top.h. */
30
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);
37
38 /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */
39 #ifndef STOP_SIGNAL
40 #include <signal.h>
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);
47 extern void handle_sigterm (int sig);
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);
52 extern void async_disable_stdin (void);
53 extern void async_enable_stdin (void);
54
55 /* Exported variables from event-top.c.
56 FIXME: these should really go into top.h. */
57
58 extern int async_command_editing_p;
59 extern int exec_done_display_p;
60 extern char *async_annotation_suffix;
61 extern struct prompts the_prompts;
62 extern void (*call_readline) (void *);
63 extern void (*input_handler) (char *);
64 extern int input_fd;
65 extern void (*after_char_processing_hook) (void);
66
67 extern void cli_command_loop (void);
68
69 #endif
This page took 0.038496 seconds and 5 git commands to generate.