gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / event-top.h
CommitLineData
fe97fe9c
AC
1/* Definitions used by event-top.c, for GDB, the GNU debugger.
2
b811d2c2 3 Copyright (C) 1999-2020 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
6aa899ce
PA
25#include <signal.h>
26
da3331ec
AC
27struct cmd_list_element;
28
0963b4bd 29/* Exported functions from event-top.c.
0af5533d 30 FIXME: these should really go into top.h. */
c2c6d25f 31
38bcc89d 32extern void display_gdb_prompt (const char *new_prompt);
3c216924
PA
33extern void gdb_setup_readline (int);
34extern void gdb_disable_readline (void);
c2c6d25f 35extern void async_init_signals (void);
3c216924 36extern void change_line_handler (int);
c2c6d25f 37
95bc9f0b 38extern void command_line_handler (gdb::unique_xmalloc_ptr<char> &&rl);
95a6b0a1 39extern void command_handler (const char *command);
b69d38af 40
c2c6d25f 41#ifdef SIGTSTP
6aa899ce 42extern void handle_sigtstp (int sig);
c2c6d25f 43#endif
6aa899ce 44
c2c6d25f 45extern void handle_sigint (int sig);
a7266fef 46extern void handle_sigterm (int sig);
2acceee2
JM
47extern void async_request_quit (void *arg);
48extern void stdin_event_handler (int error, void *client_data);
6426a772 49extern void async_disable_stdin (void);
712af3be 50extern void async_enable_stdin (void);
c2c6d25f
JM
51
52/* Exported variables from event-top.c.
0af5533d 53 FIXME: these should really go into top.h. */
c2c6d25f 54
491144b5
CB
55extern bool set_editing_cmd_var;
56extern bool exec_done_display_p;
c2c6d25f 57extern struct prompts the_prompts;
467d8519 58extern void (*after_char_processing_hook) (void);
d64e57fa 59extern int call_stdin_event_handler_again_p;
c70061cf 60extern void gdb_readline_no_editing_callback (void *client_data);
fe97fe9c 61
d3d4baed
PA
62/* Wrappers for rl_callback_handler_remove and
63 rl_callback_handler_install that keep track of whether the callback
64 handler is installed in readline. Do not call the readline
65 versions directly. */
66extern void gdb_rl_callback_handler_remove (void);
67extern void gdb_rl_callback_handler_install (const char *prompt);
68
69/* Reinstall the readline callback handler (with no prompt), if not
70 currently installed. */
71extern void gdb_rl_callback_handler_reinstall (void);
72
3b3978bc
TT
73/* The SIGSEGV handler for this thread, or NULL if there is none. GDB
74 always installs a global SIGSEGV handler, and then lets threads
75 indicate their interest in handling the signal by setting this
76 thread-local variable. */
77extern thread_local void (*thread_local_segv_handler) (int);
78
fe97fe9c 79#endif
This page took 1.387848 seconds and 4 git commands to generate.