aboutsummaryrefslogtreecommitdiff
path: root/gdb/energize.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-09-25 22:23:54 +0000
committerStu Grossman <grossman@cygnus>1992-09-25 22:23:54 +0000
commitb869d3f47fa723f7371f8ec9b62a45ff84bf68d2 (patch)
treea2047cc724aedc6b52606f760dca5ed43697fc3c /gdb/energize.h
parent13ff13438b17902dde9bbc6e73a0b234769a9bd7 (diff)
downloadgdb-b869d3f47fa723f7371f8ec9b62a45ff84bf68d2.zip
gdb-b869d3f47fa723f7371f8ec9b62a45ff84bf68d2.tar.gz
gdb-b869d3f47fa723f7371f8ec9b62a45ff84bf68d2.tar.bz2
* remote.c (remote_wait): Make regs be char to avoid picayune
ANSI compiler warnings. * energize.h: Move all external struct decls to inside of __STDC__, add prototype for energize_shell_wait(). * energize.c (getpty): Clean up, make us really get a controlling terminal. * (energize_initialize): Disable SIGIO prior to setting up for I/O interrupts. Move setsid(), et. al. to getpty(). * (energize_shell_wait): New routine to wait for things started via the shell command, uses wait() instead of /dev/proc. * Also, add prototype for execute_command_1().
Diffstat (limited to 'gdb/energize.h')
-rw-r--r--gdb/energize.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/gdb/energize.h b/gdb/energize.h
index 97ea388..8a39bf6 100644
--- a/gdb/energize.h
+++ b/gdb/energize.h
@@ -20,6 +20,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#if !defined (ENERGIZE_H)
#define ENERGIZE_H 1
+#ifdef __STDC__
+struct cmd_list_element;
+struct symbol;
+struct type;
+struct objfile;
+struct breakpoint;
+#endif /* __STDC__ */
+
/* Non-zero means that we're doing the energize interface. */
extern int energize;
@@ -32,14 +40,15 @@ extern void energize_new_process PARAMS ((void));
/* Low level wait routine for wait_for_inferior */
extern int energize_wait PARAMS ((int *));
+/* Wait routine for processes spawned by the shell command */
+extern int energize_shell_wait PARAMS ((int *statusp));
+
/* Initialize */
extern void energize_initialize PARAMS ((char *, char *));
/* Main loop for energize protocol driver */
extern void energize_main_loop PARAMS ((void));
-struct cmd_list_element;
-
/* Command hook for energize */
extern void energize_call_command PARAMS ((struct cmd_list_element *,
char *, int));
@@ -47,9 +56,6 @@ extern void energize_call_command PARAMS ((struct cmd_list_element *,
/* Read commands for the command command, and others */
extern char *energize_command_line_input PARAMS ((char *, int));
-struct symbol;
-struct type;
-
extern void energize_start_variable_annotation PARAMS ((char *,
struct symbol *,
struct type *,
@@ -60,7 +66,6 @@ extern void energize_end_variable_annotation PARAMS ((void));
extern void energize_annotate_function PARAMS ((char *, int, int));
-struct objfile;
extern void energize_symbol_file PARAMS ((struct objfile *));
/*extern void energize_query PARAMS ((char *, ...));*/
@@ -70,7 +75,6 @@ extern void energize_acknowledge_query PARAMS ((char *));
extern void energize_fputs PARAMS ((const char *));
-struct breakpoint;
extern void energize_condition_breakpoint PARAMS ((struct breakpoint *));
extern void energize_commands_breakpoint PARAMS ((struct breakpoint *));