gdb/
[deliverable/binutils-gdb.git] / gdb / event-top.h
CommitLineData
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 <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
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
26struct 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
31extern void display_gdb_prompt (char *new_prompt);
4389a95a
AC
32void gdb_setup_readline (void);
33void gdb_disable_readline (void);
c2c6d25f 34extern void async_init_signals (void);
0af5533d
MK
35extern 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
43extern void handle_stop_sig (int sig);
44#endif
45#endif
46extern void handle_sigint (int sig);
a7266fef 47extern void handle_sigterm (int sig);
2acceee2 48extern void gdb_readline2 (void *client_data);
2acceee2
JM
49extern void async_request_quit (void *arg);
50extern void stdin_event_handler (int error, void *client_data);
6426a772 51extern void async_disable_stdin (void);
712af3be 52extern void async_enable_stdin (void);
c2c6d25f
JM
53
54/* Exported variables from event-top.c.
0af5533d 55 FIXME: these should really go into top.h. */
c2c6d25f
JM
56
57extern int async_command_editing_p;
58extern int exec_done_display_p;
59extern char *async_annotation_suffix;
c2c6d25f 60extern struct prompts the_prompts;
2acceee2 61extern void (*call_readline) (void *);
c2c6d25f
JM
62extern void (*input_handler) (char *);
63extern int input_fd;
467d8519 64extern void (*after_char_processing_hook) (void);
fe97fe9c
AC
65
66extern void cli_command_loop (void);
67
68#endif
This page took 1.040657 seconds and 4 git commands to generate.