xref: /dflybsd-src/contrib/gdb-7/gdb/event-top.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Definitions used by event-top.c, for GDB, the GNU debugger.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 1999-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This file is part of GDB.
85796c8dcSSimon Schubert 
95796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
105796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
115796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
125796c8dcSSimon Schubert    (at your option) any later version.
135796c8dcSSimon Schubert 
145796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
155796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
165796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
175796c8dcSSimon Schubert    GNU General Public License for more details.
185796c8dcSSimon Schubert 
195796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
205796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
215796c8dcSSimon Schubert 
225796c8dcSSimon Schubert #ifndef EVENT_TOP_H
235796c8dcSSimon Schubert #define EVENT_TOP_H
245796c8dcSSimon Schubert 
255796c8dcSSimon Schubert struct cmd_list_element;
265796c8dcSSimon Schubert 
275796c8dcSSimon Schubert /* Exported functions from event-top.c.
285796c8dcSSimon Schubert    FIXME: these should really go into top.h.  */
295796c8dcSSimon Schubert 
305796c8dcSSimon Schubert extern void display_gdb_prompt (char *new_prompt);
315796c8dcSSimon Schubert void gdb_setup_readline (void);
325796c8dcSSimon Schubert void gdb_disable_readline (void);
335796c8dcSSimon Schubert extern void async_init_signals (void);
345796c8dcSSimon Schubert extern void set_async_editing_command (char *args, int from_tty,
355796c8dcSSimon Schubert 				       struct cmd_list_element *c);
365796c8dcSSimon Schubert 
375796c8dcSSimon Schubert /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT.  */
385796c8dcSSimon Schubert #ifndef STOP_SIGNAL
395796c8dcSSimon Schubert #include <signal.h>
405796c8dcSSimon Schubert #ifdef SIGTSTP
415796c8dcSSimon Schubert #define STOP_SIGNAL SIGTSTP
425796c8dcSSimon Schubert extern void handle_stop_sig (int sig);
435796c8dcSSimon Schubert #endif
445796c8dcSSimon Schubert #endif
455796c8dcSSimon Schubert extern void handle_sigint (int sig);
465796c8dcSSimon Schubert extern void handle_sigterm (int sig);
475796c8dcSSimon Schubert extern void gdb_readline2 (void *client_data);
485796c8dcSSimon Schubert extern void async_request_quit (void *arg);
495796c8dcSSimon Schubert extern void stdin_event_handler (int error, void *client_data);
505796c8dcSSimon Schubert extern void async_disable_stdin (void);
515796c8dcSSimon Schubert extern void async_enable_stdin (void);
525796c8dcSSimon Schubert 
535796c8dcSSimon Schubert /* Exported variables from event-top.c.
545796c8dcSSimon Schubert    FIXME: these should really go into top.h.  */
555796c8dcSSimon Schubert 
565796c8dcSSimon Schubert extern int async_command_editing_p;
575796c8dcSSimon Schubert extern int exec_done_display_p;
585796c8dcSSimon Schubert extern char *async_annotation_suffix;
595796c8dcSSimon Schubert extern struct prompts the_prompts;
605796c8dcSSimon Schubert extern void (*call_readline) (void *);
615796c8dcSSimon Schubert extern void (*input_handler) (char *);
625796c8dcSSimon Schubert extern int input_fd;
635796c8dcSSimon Schubert extern void (*after_char_processing_hook) (void);
645796c8dcSSimon Schubert 
655796c8dcSSimon Schubert extern void cli_command_loop (void);
665796c8dcSSimon Schubert 
675796c8dcSSimon Schubert #endif
68