* remote.c (packet_command): Test REMOTE_DESC to determine if remote
authorAndrew Cagney <cagney@redhat.com>
Wed, 23 Sep 1998 08:06:50 +0000 (08:06 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 23 Sep 1998 08:06:50 +0000 (08:06 +0000)
connection is open.

gdb/ChangeLog
gdb/remote.c

index 7da9553d15a0dd47776e7af936c4d92c00a39b24..c16d4f65c3fb13b7bc825ec9426cb6db04405bb4 100644 (file)
@@ -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>:
index ca1a8a406a79b8a92c4bb3a082fdf35fe5bd5af3..17e5507765249d0909288e34312b79f2aabe96cc 100644 (file)
@@ -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;