* remote.c (remote_start_remote): Always tell the stub if we're in
authorPedro Alves <palves@redhat.com>
Fri, 10 Oct 2008 14:46:31 +0000 (14:46 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 10 Oct 2008 14:46:31 +0000 (14:46 +0000)
extended-remote.

gdb/ChangeLog
gdb/remote.c

index 6d9ff49bd7245d3c0248f3b92f89a936876c3e30..37295631e500920d2cf682baad5138dfa2e02ffd 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_start_remote): Always tell the stub if we're in
+       extended-remote.
+
 2008-10-09  Pedro Alves  <pedro@codesourcery.com>
 
        * remote.c (remote_wait): Rename to...
index 473dc8eb372546cab9c5863f4d8f001498cac588..4196a2f3dd6d0a968b970486d9419923bed936fe 100644 (file)
@@ -2419,6 +2419,13 @@ remote_start_remote (struct ui_out *uiout, void *opaque)
        rs->noack_mode = 1;
     }
 
+  if (args->extended_p)
+    {
+      /* Tell the remote that we are using the extended protocol.  */
+      putpkt ("!");
+      getpkt (&rs->buf, &rs->buf_size, 0);
+    }
+
   /* Next, if the target can specify a description, read it.  We do
      this before anything involving memory or registers.  */
   target_find_description ();
@@ -2482,13 +2489,6 @@ remote_start_remote (struct ui_out *uiout, void *opaque)
   immediate_quit--;
   start_remote (args->from_tty); /* Initialize gdb process mechanisms.  */
 
-  if (args->extended_p)
-    {
-      /* Tell the remote that we are using the extended protocol.  */
-      putpkt ("!");
-      getpkt (&rs->buf, &rs->buf_size, 0);
-    }
-
   /* If we connected to a live target, do some additional setup.  */
   if (target_has_execution)
     {