GDB (API)
/home/stan/gdb/src/gdb/event-top.h
Go to the documentation of this file.
00001 /* Definitions used by event-top.c, for GDB, the GNU debugger.
00002 
00003    Copyright (C) 1999-2013 Free Software Foundation, Inc.
00004 
00005    Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
00006 
00007    This file is part of GDB.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 3 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00021 
00022 #ifndef EVENT_TOP_H
00023 #define EVENT_TOP_H
00024 
00025 struct cmd_list_element;
00026 
00027 /* Exported functions from event-top.c.
00028    FIXME: these should really go into top.h.  */
00029 
00030 extern void display_gdb_prompt (char *new_prompt);
00031 void gdb_setup_readline (void);
00032 void gdb_disable_readline (void);
00033 extern void async_init_signals (void);
00034 extern void set_async_editing_command (char *args, int from_tty,
00035                                        struct cmd_list_element *c);
00036 
00037 /* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT.  */
00038 #ifndef STOP_SIGNAL
00039 #include <signal.h>
00040 #ifdef SIGTSTP
00041 #define STOP_SIGNAL SIGTSTP
00042 extern void handle_stop_sig (int sig);
00043 #endif
00044 #endif
00045 extern void handle_sigint (int sig);
00046 extern void handle_sigterm (int sig);
00047 extern void gdb_readline2 (void *client_data);
00048 extern void async_request_quit (void *arg);
00049 extern void stdin_event_handler (int error, void *client_data);
00050 extern void async_disable_stdin (void);
00051 extern void async_enable_stdin (void);
00052 
00053 /* Exported variables from event-top.c.
00054    FIXME: these should really go into top.h.  */
00055 
00056 extern int async_command_editing_p;
00057 extern int exec_done_display_p;
00058 extern char *async_annotation_suffix;
00059 extern struct prompts the_prompts;
00060 extern void (*call_readline) (void *);
00061 extern void (*input_handler) (char *);
00062 extern int input_fd;
00063 extern void (*after_char_processing_hook) (void);
00064 
00065 extern void cli_command_loop (void *);
00066 
00067 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines