aboutsummaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:34:30 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:34:30 +0000
commit70dcc196e1548122d4959b1e9e4b22c41c27a179 (patch)
treea3e5c26c904c22f77e32583af37abd21c85a3a62 /gdb/inftarg.c
parentf266e5641bf784095775c76514192f8ea29a179b (diff)
downloadbinutils-70dcc196e1548122d4959b1e9e4b22c41c27a179.zip
binutils-70dcc196e1548122d4959b1e9e4b22c41c27a179.tar.gz
binutils-70dcc196e1548122d4959b1e9e4b22c41c27a179.tar.bz2
* inftarg.c (child_open), remote-vx{,.68}.c (vx_proc_open):
New function to give correct error message.
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 ce64437..5b52fda 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,