| 1 | /* Energize interface defs for GDB. |
| 2 | Copyright (C) 1992 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GDB. |
| 5 | |
| 6 | This program is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 2 of the License, or |
| 9 | (at your option) any later version. |
| 10 | |
| 11 | This program is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with this program; if not, write to the Free Software |
| 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | |
| 20 | #if !defined (ENERGIZE_H) |
| 21 | #define ENERGIZE_H 1 |
| 22 | |
| 23 | #ifdef __STDC__ |
| 24 | struct cmd_list_element; |
| 25 | struct symbol; |
| 26 | struct type; |
| 27 | struct objfile; |
| 28 | struct breakpoint; |
| 29 | #endif /* __STDC__ */ |
| 30 | |
| 31 | /* Non-zero means that we're doing the energize interface. */ |
| 32 | extern int energize; |
| 33 | |
| 34 | /* Get a pty for use with energize */ |
| 35 | extern char *energize_getpty PARAMS ((void)); |
| 36 | |
| 37 | /* Notify energize of new process creation */ |
| 38 | extern void energize_new_process PARAMS ((void)); |
| 39 | |
| 40 | /* Low level wait routine for wait_for_inferior */ |
| 41 | extern int energize_wait PARAMS ((int *)); |
| 42 | |
| 43 | /* Wait routine for processes spawned by the shell command */ |
| 44 | extern int energize_shell_wait PARAMS ((int *statusp)); |
| 45 | |
| 46 | /* Initialize */ |
| 47 | extern void energize_initialize PARAMS ((char *, char *)); |
| 48 | |
| 49 | /* Main loop for energize protocol driver */ |
| 50 | extern void energize_main_loop PARAMS ((void)); |
| 51 | |
| 52 | /* Command hook for energize */ |
| 53 | extern void energize_call_command PARAMS ((struct cmd_list_element *, |
| 54 | char *, int)); |
| 55 | |
| 56 | /* Read commands for the command command, and others */ |
| 57 | extern char *energize_command_line_input PARAMS ((char *, int)); |
| 58 | |
| 59 | extern void energize_start_variable_annotation PARAMS ((char *, |
| 60 | struct symbol *, |
| 61 | struct type *, |
| 62 | CORE_ADDR, |
| 63 | char *)); |
| 64 | |
| 65 | extern void energize_end_variable_annotation PARAMS ((void)); |
| 66 | |
| 67 | extern void energize_annotate_function PARAMS ((char *, int, int)); |
| 68 | |
| 69 | extern void energize_symbol_file PARAMS ((struct objfile *)); |
| 70 | |
| 71 | /*extern void energize_query PARAMS ((char *, ...));*/ |
| 72 | extern void energize_query (); /* Prototypes for varargs don't work */ |
| 73 | |
| 74 | extern void energize_acknowledge_query PARAMS ((char *)); |
| 75 | |
| 76 | extern void energize_fputs PARAMS ((const char *)); |
| 77 | |
| 78 | extern void energize_condition_breakpoint PARAMS ((struct breakpoint *)); |
| 79 | |
| 80 | extern void energize_commands_breakpoint PARAMS ((struct breakpoint *)); |
| 81 | |
| 82 | extern void energize_ignore_breakpoint PARAMS ((struct breakpoint *)); |
| 83 | |
| 84 | extern void energize_create_breakpoint PARAMS ((struct breakpoint *)); |
| 85 | |
| 86 | extern void energize_delete_breakpoint PARAMS ((struct breakpoint *)); |
| 87 | |
| 88 | extern void energize_enable_breakpoint PARAMS ((struct breakpoint *)); |
| 89 | |
| 90 | extern void energize_disable_breakpoint PARAMS ((struct breakpoint *)); |
| 91 | |
| 92 | #endif /* !defined (ENERGIZE_H) */ |