aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-06-01 19:28:24 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-06-01 19:28:24 +0000
commitd3507982fb3837ea4f02432aa16f3d18135cdd62 (patch)
tree0f2455bb00e11b55b62b30ae6fa306de71c90d95 /gdb/main.c
parent220642fd4757673af90a84ee0532bc7a9c7d785a (diff)
downloadfsf-binutils-gdb-d3507982fb3837ea4f02432aa16f3d18135cdd62.zip
fsf-binutils-gdb-d3507982fb3837ea4f02432aa16f3d18135cdd62.tar.gz
fsf-binutils-gdb-d3507982fb3837ea4f02432aa16f3d18135cdd62.tar.bz2
* inftarg.c (child_wait): Call proc_wait, not wait.
(child_mourn_inferior): Call proc_remove_foreign. * main.c (gdb_init): Call init_proc. * main.c: Provide dummy versions of init_proc, proc_wait, and proc_remove_foreign for the gdb case (the libgdb case provides its own versions of these functions). * Makefile.in (libgdb-files): Add libproc.a.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/main.c b/gdb/main.c
index eb84f2c..56a34ad 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -518,6 +518,8 @@ read_command_file (stream)
do_cleanups (cleanups);
}
+extern void init_proc ();
+
void
gdb_init ()
{
@@ -528,6 +530,8 @@ gdb_init ()
init_main (); /* But that omits this file! Do it now */
init_signals ();
+ init_proc ();
+
/* We need a default language for parsing expressions, so simple things like
"set width 0" won't fail if no language is explicitly set in a config file
or implicitly set by reading an executable during startup. */
@@ -1026,6 +1030,25 @@ GDB manual (available as on-line info or a printed manual).\n", gdb_stdout);
}
/* No exit -- exit is through quit_command. */
}
+
+void
+init_proc ()
+{
+}
+
+int
+proc_wait (pid, status)
+ int pid;
+ int *status;
+{
+ return wait (status);
+}
+
+void
+proc_remove_foreign (pid)
+ int pid;
+{
+}
#endif /* MAIN_OVERRIDE */
void