GDB (xrefs)
/tmp/gdb-7.10/gdb/event-top.h
Go to the documentation of this file.
1 /* Definitions used by event-top.c, for GDB, the GNU debugger.
2 
3  Copyright (C) 1999-2015 Free Software Foundation, Inc.
4 
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
11  the Free Software Foundation; either version 3 of the License, or
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
20  along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 
22 #ifndef EVENT_TOP_H
23 #define EVENT_TOP_H
24 
25 struct cmd_list_element;
26 
27 /* Exported functions from event-top.c.
28  FIXME: these should really go into top.h. */
29 
30 extern void display_gdb_prompt (const char *new_prompt);
31 void gdb_setup_readline (void);
32 void gdb_disable_readline (void);
33 extern void async_init_signals (void);
34 extern void set_async_editing_command (char *args, int from_tty,
35  struct cmd_list_element *c);
36 
37 /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */
38 #ifndef STOP_SIGNAL
39 #include <signal.h>
40 #ifdef SIGTSTP
41 #define STOP_SIGNAL SIGTSTP
42 extern void handle_stop_sig (int sig);
43 #endif
44 #endif
45 extern void handle_sigint (int sig);
46 extern void handle_sigterm (int sig);
47 extern void gdb_readline2 (void *client_data);
48 extern void async_request_quit (void *arg);
49 extern void stdin_event_handler (int error, void *client_data);
50 extern void async_disable_stdin (void);
51 extern void async_enable_stdin (void);
52 
53 /* Exported variables from event-top.c.
54  FIXME: these should really go into top.h. */
55 
56 extern int async_command_editing_p;
57 extern int exec_done_display_p;
58 extern char *async_annotation_suffix;
59 extern struct prompts the_prompts;
60 extern void (*call_readline) (void *);
61 extern void (*input_handler) (char *);
62 extern int input_fd;
63 extern void (*after_char_processing_hook) (void);
65 
66 /* Wrappers for rl_callback_handler_remove and
67  rl_callback_handler_install that keep track of whether the callback
68  handler is installed in readline. Do not call the readline
69  versions directly. */
70 extern void gdb_rl_callback_handler_remove (void);
71 extern void gdb_rl_callback_handler_install (const char *prompt);
72 
73 /* Reinstall the readline callback handler (with no prompt), if not
74  currently installed. */
75 extern void gdb_rl_callback_handler_reinstall (void);
76 
77 extern void cli_command_loop (void *);
78 
79 #endif
void async_disable_stdin(void)
Definition: event-top.c:459
int exec_done_display_p
Definition: event-top.c:116
void cli_command_loop(void *)
Definition: event-top.c:181
void handle_sigint(int sig)
Definition: event-top.c:839
void async_request_quit(void *arg)
Definition: event-top.c:892
int call_stdin_event_handler_again_p
Definition: event-top.c:125
void stdin_event_handler(int error, void *client_data)
Definition: event-top.c:416
void(* after_char_processing_hook)(void)
Definition: event-top.c:162
void set_async_editing_command(char *args, int from_tty, struct cmd_list_element *c)
Definition: event-top.c:1026
void gdb_readline2(void *client_data)
Definition: event-top.c:710
void display_gdb_prompt(const char *new_prompt)
Definition: event-top.c:291
void(* call_readline)(void *)
Definition: event-top.c:98
void(* input_handler)(char *)
Definition: event-top.c:97
void gdb_rl_callback_handler_reinstall(void)
Definition: event-top.c:263
int input_fd
Definition: event-top.c:120
char * async_annotation_suffix
Definition: event-top.c:112
void gdb_rl_callback_handler_install(const char *prompt)
Definition: event-top.c:249
void handle_sigterm(int sig)
Definition: event-top.c:875
void async_init_signals(void)
Definition: event-top.c:790
void async_enable_stdin(void)
Definition: event-top.c:442
struct prompts the_prompts
void gdb_disable_readline(void)
Definition: event-top.c:1094
int async_command_editing_p
Definition: event-top.c:108
void gdb_setup_readline(void)
Definition: event-top.c:1036
void error(const char *fmt,...)
Definition: errors.c:38
void gdb_rl_callback_handler_remove(void)
Definition: event-top.c:238