public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at sourceware dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug remote/31801] Protocol error: QThreadEvents (thread-events) conflicting enabled
Date: Tue, 04 Jun 2024 18:13:27 +0000	[thread overview]
Message-ID: <bug-31801-4717-r31KSv2vvo@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31801-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=31801

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
Ok, in this case, gdb is correct to give an error.

What happens is that gdb sends "QThreadEvents+" in its
qSupported packet.  The remote replies "QThreadEvents+",
meaning the packet is supported.

Then later:

&"[remote] Sending packet: $QThreadEvents:1#89\n"
&"[remote] Packet received: \n"

That is, gdb asks for thread events and the remote
replies with the empty response, which means "unsupported" --
but it already said it *is* supported.

This is a bug in the remote.

Now, I do see the empty response documented in the manual.
However, I tend to think this is a cut-and-paste bug
in the manual itself, since the chart in the general
query packets node says:

     Feature Name              Value          Default   Probe
                               Required                 Allowed
...
     ‘QThreadEvents’           No             ‘-’       No

i.e., probing isn't allowed, so the empty response -- IMO --
is nonsensical.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-06-04 18:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-26 16:06 [Bug remote/31801] New: " dmitry.neverov at jetbrains dot com
2024-05-26 16:07 ` [Bug remote/31801] " dmitry.neverov at jetbrains dot com
2024-05-26 16:07 ` dmitry.neverov at jetbrains dot com
2024-05-26 19:56 ` tromey at sourceware dot org
2024-05-26 21:04 ` tromey at sourceware dot org
2024-06-03 14:38 ` tromey at sourceware dot org
2024-06-04 13:08 ` dmitry.neverov at jetbrains dot com
2024-06-04 18:13 ` tromey at sourceware dot org [this message]
2024-06-04 18:15 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31801-4717-r31KSv2vvo@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).