diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-09-23 08:06:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-09-23 08:06:50 +0000 |
commit | abf80d3b9c718187a82fbe6dc83ac2f86ce03a7a (patch) | |
tree | 4fa5384999532d8b8e60e9410b8910b0a6400e3b /gdb/remote.c | |
parent | 0ec1e44d3d987630347fd592f686a6d8cbf0444d (diff) | |
download | gdb-abf80d3b9c718187a82fbe6dc83ac2f86ce03a7a.zip gdb-abf80d3b9c718187a82fbe6dc83ac2f86ce03a7a.tar.gz gdb-abf80d3b9c718187a82fbe6dc83ac2f86ce03a7a.tar.bz2 |
* remote.c (packet_command): Test REMOTE_DESC to determine if remote
connection is open.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index ca1a8a4..17e5507 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2059,8 +2059,7 @@ packet_command (args, from_tty) { char buf[PBUFSIZ]; - if (!current_target.to_shortname || - strcmp (current_target.to_shortname, "remote") != 0) + if (! remote_desc) error ("command can only be used with remote target"); if (! args) @@ -2082,7 +2081,7 @@ init_remote_ops () { remote_ops.to_shortname = "remote"; remote_ops.to_longname = "Remote serial target in gdb-specific protocol"; - remote_ops.to_doc = "Use a remote computer via a serial line; using a gdb-specific protocol.\n\ + remote_ops.to_doc = "Use a remote computer via a serial line, using a gdb-specific protocol.\n\ Specify the serial device it is connected to (e.g. /dev/ttya)."; remote_ops.to_open = remote_open; remote_ops.to_close = remote_close; @@ -2116,7 +2115,7 @@ init_extended_remote_ops () extended_remote_ops.to_shortname = "extended-remote"; extended_remote_ops.to_longname = "Extended remote serial target in gdb-specific protocol"; - extended_remote_ops.to_doc = "Use a remote computer via a serial line; using a gdb-specific protocol.\n\ + extended_remote_ops.to_doc = "Use a remote computer via a serial line, using a gdb-specific protocol.\n\ Specify the serial device it is connected to (e.g. /dev/ttya).", extended_remote_ops.to_open = extended_remote_open; extended_remote_ops.to_create_inferior = extended_remote_create_inferior; |