2008-10-10 Pedro Alves gdb/ * remote.c (remote_start_remote): Always tell the stub if we're in extended-remote. --- gdb/remote.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Index: src/gdb/remote.c =================================================================== --- src.orig/gdb/remote.c 2008-10-09 15:57:48.000000000 +0100 +++ src/gdb/remote.c 2008-10-10 14:58:30.000000000 +0100 @@ -2419,6 +2419,13 @@ remote_start_remote (struct ui_out *uiou 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 *uiou 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) {