aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-09-23 08:06:50 +0000
committerAndrew Cagney <cagney@redhat.com>1998-09-23 08:06:50 +0000
commitabf80d3b9c718187a82fbe6dc83ac2f86ce03a7a (patch)
tree4fa5384999532d8b8e60e9410b8910b0a6400e3b /gdb
parent0ec1e44d3d987630347fd592f686a6d8cbf0444d (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7da9553..c16d4f6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 23 12:32:54 1998 <cagney@amy.cygnus.com>
+
+ * remote.c (packet_command): Test REMOTE_DESC to determine if
+ remote connection is open.
+
Tue Sep 22 22:27:24 1998 Mark Alexander <marka@cygnus.com>
Patch from Dawn Perchik <dawn@cygnus.com>:
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;