aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-10-10 14:46:31 +0000
committerPedro Alves <palves@redhat.com>2008-10-10 14:46:31 +0000
commit5fe04517827cff6e81ab03e4e1f1450ddc24668f (patch)
tree2e8b849d3f3578ef6dbcc09c1b29e34388a9bd81 /gdb/remote.c
parent9b710a42944c3979ed9c8fae8b163ec5353f9c47 (diff)
downloadgdb-5fe04517827cff6e81ab03e4e1f1450ddc24668f.zip
gdb-5fe04517827cff6e81ab03e4e1f1450ddc24668f.tar.gz
gdb-5fe04517827cff6e81ab03e4e1f1450ddc24668f.tar.bz2
* remote.c (remote_start_remote): Always tell the stub if we're in
extended-remote.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 473dc8e..4196a2f 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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)
{