diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 01:34:30 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 01:34:30 +0000 |
commit | 70dcc196e1548122d4959b1e9e4b22c41c27a179 (patch) | |
tree | a3e5c26c904c22f77e32583af37abd21c85a3a62 /gdb/remote-vx.68.c | |
parent | f266e5641bf784095775c76514192f8ea29a179b (diff) | |
download | gdb-70dcc196e1548122d4959b1e9e4b22c41c27a179.zip gdb-70dcc196e1548122d4959b1e9e4b22c41c27a179.tar.gz gdb-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/remote-vx.68.c')
-rw-r--r-- | gdb/remote-vx.68.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gdb/remote-vx.68.c b/gdb/remote-vx.68.c index 2c17b9e..2138edb 100644 --- a/gdb/remote-vx.68.c +++ b/gdb/remote-vx.68.c @@ -1295,6 +1295,8 @@ vx_open (args, from_tty) if (!args) error_no_arg ("target machine name"); + target_preopen (); + printf ("Attaching remote machine across net...\n"); fflush (stdout); @@ -1475,11 +1477,23 @@ net_clnt_call (procNum, inProc, in, outProc, out) return status; } +/* A vxprocess target should be started via "run" not "target". */ +/*ARGSUSED*/ +static void +vx_proc_open (name, from_tty) + char *name; + int from_tty; +{ + error ("Use the \"run\" command to start a VxWorks process."); +} + /* Target ops structure for accessing memory and such over the net */ struct target_ops vx_ops = { "vxworks", "VxWorks target memory via RPC over TCP/IP", + "Use VxWorks target memory. \n\ +Specify the name of the machine to connect to.", vx_open, 0, /* vx_detach, */ 0, 0, /* resume, wait */ 0, 0, /* read_reg, write_reg */ @@ -1501,7 +1515,8 @@ struct target_ops vx_ops = { struct target_ops vx_run_ops = { "vxprocess", "VxWorks process", - vx_open, 0, /* vx_detach, */ + "VxWorks process, started by the \"run\" command.", + vx_proc_open, 0, /* vx_detach, */ vx_resume, vx_wait, vx_read_register, vx_write_register, vx_prepare_to_store, vx_convert_to_virtual, vx_convert_from_virtual, |