1 1.1 christos /* Definitions used by event-top.c, for GDB, the GNU debugger. 2 1.1 christos 3 1.1 christos Copyright (C) 1999-2014 Free Software Foundation, Inc. 4 1.1 christos 5 1.1 christos Written by Elena Zannoni <ezannoni (at) cygnus.com> of Cygnus Solutions. 6 1.1 christos 7 1.1 christos This file is part of GDB. 8 1.1 christos 9 1.1 christos This program is free software; you can redistribute it and/or modify 10 1.1 christos it under the terms of the GNU General Public License as published by 11 1.1 christos the Free Software Foundation; either version 3 of the License, or 12 1.1 christos (at your option) any later version. 13 1.1 christos 14 1.1 christos This program is distributed in the hope that it will be useful, 15 1.1 christos but WITHOUT ANY WARRANTY; without even the implied warranty of 16 1.1 christos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 1.1 christos GNU General Public License for more details. 18 1.1 christos 19 1.1 christos You should have received a copy of the GNU General Public License 20 1.1 christos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 21 1.1 christos 22 1.1 christos #ifndef EVENT_TOP_H 23 1.1 christos #define EVENT_TOP_H 24 1.1 christos 25 1.1 christos struct cmd_list_element; 26 1.1 christos 27 1.1 christos /* Exported functions from event-top.c. 28 1.1 christos FIXME: these should really go into top.h. */ 29 1.1 christos 30 1.1 christos extern void display_gdb_prompt (char *new_prompt); 31 1.1 christos void gdb_setup_readline (void); 32 1.1 christos void gdb_disable_readline (void); 33 1.1 christos extern void async_init_signals (void); 34 1.1 christos extern void set_async_editing_command (char *args, int from_tty, 35 1.1 christos struct cmd_list_element *c); 36 1.1 christos 37 1.1 christos /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */ 38 1.1 christos #ifndef STOP_SIGNAL 39 1.1 christos #include <signal.h> 40 1.1 christos #ifdef SIGTSTP 41 1.1 christos #define STOP_SIGNAL SIGTSTP 42 1.1 christos extern void handle_stop_sig (int sig); 43 1.1 christos #endif 44 1.1 christos #endif 45 1.1 christos extern void handle_sigint (int sig); 46 1.1 christos extern void handle_sigterm (int sig); 47 1.1 christos extern void gdb_readline2 (void *client_data); 48 1.1 christos extern void async_request_quit (void *arg); 49 1.1 christos extern void stdin_event_handler (int error, void *client_data); 50 1.1 christos extern void async_disable_stdin (void); 51 1.1 christos extern void async_enable_stdin (void); 52 1.1 christos 53 1.1 christos /* Exported variables from event-top.c. 54 1.1 christos FIXME: these should really go into top.h. */ 55 1.1 christos 56 1.1 christos extern int async_command_editing_p; 57 1.1 christos extern int exec_done_display_p; 58 1.1 christos extern char *async_annotation_suffix; 59 1.1 christos extern struct prompts the_prompts; 60 1.1 christos extern void (*call_readline) (void *); 61 1.1 christos extern void (*input_handler) (char *); 62 1.1 christos extern int input_fd; 63 1.1 christos extern void (*after_char_processing_hook) (void); 64 1.1 christos 65 1.1 christos extern void cli_command_loop (void *); 66 1.1 christos 67 1.1 christos #endif 68