Record GDB 7.5 branch creation. Bump version number
[deliverable/binutils-gdb.git] / gdb / event-top.h
... / ...
CommitLineData
1/* Definitions used by event-top.c, for GDB, the GNU debugger.
2
3 Copyright (C) 1999, 2001, 2003, 2007-2012 Free Software Foundation,
4 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
26struct cmd_list_element;
27
28/* Exported functions from event-top.c.
29 FIXME: these should really go into top.h. */
30
31extern void display_gdb_prompt (char *new_prompt);
32void gdb_setup_readline (void);
33void gdb_disable_readline (void);
34extern void async_init_signals (void);
35extern 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
43extern void handle_stop_sig (int sig);
44#endif
45#endif
46extern void handle_sigint (int sig);
47extern void handle_sigterm (int sig);
48extern void gdb_readline2 (void *client_data);
49extern void mark_async_signal_handler_wrapper (void *token);
50extern void async_request_quit (void *arg);
51extern void stdin_event_handler (int error, void *client_data);
52extern void async_disable_stdin (void);
53extern void async_enable_stdin (void);
54
55/* Exported variables from event-top.c.
56 FIXME: these should really go into top.h. */
57
58extern int async_command_editing_p;
59extern int exec_done_display_p;
60extern char *async_annotation_suffix;
61extern struct prompts the_prompts;
62extern void (*call_readline) (void *);
63extern void (*input_handler) (char *);
64extern int input_fd;
65extern void (*after_char_processing_hook) (void);
66
67extern void cli_command_loop (void);
68
69#endif
This page took 0.022548 seconds and 4 git commands to generate.