summaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index ce64437f766..5b52fda0a62 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -153,9 +153,18 @@ child_files_info ()
attach_flag? "attached": "child", inferior_pid);
}
+static void
+child_open (arg, from_tty)
+ char *arg;
+ int from_tty;
+{
+ error ("Use the \"run\" command to start a Unix child process.");
+}
+
struct target_ops child_ops = {
"child", "Unix child process",
- 0, 0, /* open, close */
+ "Unix child process (started by the \"run\" command).",
+ child_open, 0, /* open, close */
child_attach, child_detach,
child_resume,
child_wait,