+Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com)
+
+ * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
+
Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com)
* tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
extern void
reopen_exec_file PARAMS ((void));
+/* The `resume' routine should only be called in special circumstances.
+ Normally, use `proceed', which handles a lot of bookkeeping. */
extern void
resume PARAMS ((int, int));
-/* Target independent code for starting (run) and stoping an inferior
- process.
-
+/* Target-struct-independent code to start (run) and stop an inferior process.
Copyright 1986, 1987, 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
static void
resume_cleanups PARAMS ((int));
-extern struct target_ops child_ops; /* In inftarg.c */
-
/* Sigtramp is a routine that the kernel calls (which then calls the
signal handler). On most machines it is a library routine that
is linked into the executable.
-/* This file inplements the host independent child process statum.
-
+/* Target-vector operations for controlling Unix child processes, for GDB.
Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
Contributed by Cygnus Support.
static void
child_mourn_inferior PARAMS ((void));
+static int
+child_can_run PARAMS ((void));
+
extern char **environ;
/* Forward declaration */
#endif /* ATTACH_DETACH */
}
-/*
- * child_detach()
- * takes a program previously attached to and detaches it.
- * The program resumes execution and will no longer stop
- * on signals, etc. We better not have left any breakpoints
- * in the program or it'll die when it hits one. For this
- * to work, it may be necessary for the process to have been
- * previously attached. It *might* work if the program was
- * started via the normal ptrace (PTRACE_TRACEME).
- */
+
+/* Take a program previously attached to and detaches it.
+ The program resumes execution and will no longer stop
+ on signals, etc. We'd better not have left any breakpoints
+ in the program or it'll die when it hits one. For this
+ to work, it may be necessary for the process to have been
+ previously attached. It *might* work if the program was
+ started via the normal ptrace (PTRACE_TRACEME). */
static void
child_detach (args, from_tty)
{
return(1);
}
-
+\f
struct target_ops child_ops = {
"child", /* to_shortname */
"Unix child process", /* to_longname */