[ARC] Add SYNTAX_NOP and SYNTAX_1OP for extension instructions
[deliverable/binutils-gdb.git] / gdb / event-top.h
CommitLineData
fe97fe9c
AC
1/* Definitions used by event-top.c, for GDB, the GNU debugger.
2
618f726f 3 Copyright (C) 1999-2016 Free Software Foundation, Inc.
fe97fe9c 4
c2c6d25f
JM
5 Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
a9762ec7 11 the Free Software Foundation; either version 3 of the License, or
c2c6d25f
JM
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
a9762ec7 20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c2c6d25f 21
fe97fe9c
AC
22#ifndef EVENT_TOP_H
23#define EVENT_TOP_H
24
da3331ec
AC
25struct cmd_list_element;
26
0963b4bd 27/* Exported functions from event-top.c.
0af5533d 28 FIXME: these should really go into top.h. */
c2c6d25f 29
38bcc89d 30extern void display_gdb_prompt (const char *new_prompt);
4389a95a
AC
31void gdb_setup_readline (void);
32void gdb_disable_readline (void);
c2c6d25f 33extern void async_init_signals (void);
0af5533d
MK
34extern void set_async_editing_command (char *args, int from_tty,
35 struct cmd_list_element *c);
c2c6d25f 36
b69d38af
PA
37extern void command_handler (char *command);
38
c2c6d25f
JM
39/* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */
40#ifndef STOP_SIGNAL
72290732 41#include <signal.h>
c2c6d25f
JM
42#ifdef SIGTSTP
43#define STOP_SIGNAL SIGTSTP
44extern void handle_stop_sig (int sig);
45#endif
46#endif
47extern void handle_sigint (int sig);
a7266fef 48extern void handle_sigterm (int sig);
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;
c2c6d25f 59extern struct prompts the_prompts;
2acceee2 60extern void (*call_readline) (void *);
c2c6d25f
JM
61extern void (*input_handler) (char *);
62extern int input_fd;
467d8519 63extern void (*after_char_processing_hook) (void);
d64e57fa 64extern int call_stdin_event_handler_again_p;
c70061cf 65extern void gdb_readline_no_editing_callback (void *client_data);
fe97fe9c 66
d3d4baed
PA
67/* Wrappers for rl_callback_handler_remove and
68 rl_callback_handler_install that keep track of whether the callback
69 handler is installed in readline. Do not call the readline
70 versions directly. */
71extern void gdb_rl_callback_handler_remove (void);
72extern void gdb_rl_callback_handler_install (const char *prompt);
73
74/* Reinstall the readline callback handler (with no prompt), if not
75 currently installed. */
76extern void gdb_rl_callback_handler_reinstall (void);
77
4d09c5b4 78extern void cli_command_loop (void *);
fe97fe9c
AC
79
80#endif
This page took 1.120566 seconds and 4 git commands to generate.