aboutsummaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-26 01:49:18 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-26 01:49:18 +0000
commit3aa6856ae81484ff7db975f724f212191f0e23e1 (patch)
tree7579d77cd2563ea1aa2255aeca1d7ec6406249ca /gdb/inftarg.c
parentfe86a81703ef5bfa28950fac5637d32b0f266d20 (diff)
downloadfsf-binutils-gdb-3aa6856ae81484ff7db975f724f212191f0e23e1.zip
fsf-binutils-gdb-3aa6856ae81484ff7db975f724f212191f0e23e1.tar.gz
fsf-binutils-gdb-3aa6856ae81484ff7db975f724f212191f0e23e1.tar.bz2
* infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index d40d55a..5717408 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -1,5 +1,4 @@
-/* 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.
@@ -61,6 +60,9 @@ child_create_inferior PARAMS ((char *, char *, char **));
static void
child_mourn_inferior PARAMS ((void));
+static int
+child_can_run PARAMS ((void));
+
extern char **environ;
/* Forward declaration */
@@ -154,16 +156,14 @@ child_attach (args, from_tty)
#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)
@@ -459,7 +459,7 @@ child_can_run ()
{
return(1);
}
-
+
struct target_ops child_ops = {
"child", /* to_shortname */
"Unix child process", /* to_longname */