Skip to content

Commit

Permalink
gdbserver: be stricter about qC
Browse files Browse the repository at this point in the history
Don't match only the prefix of qC. Otherwise, compare-sections in
gdb will fail, due to qCRC returning a thread ID.
  • Loading branch information
tlyu authored and ithinuel committed Feb 22, 2025
1 parent 657eab2 commit edb69ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyocd/gdbserver/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def handle_query(self, msg):
# Must return an empty packet for an unrecognized qXfer.
return self.create_rsp_packet(b"")

elif query[0].startswith(b'C'):
elif query[0] == b'C':
if not self.is_threading_enabled():
return self.create_rsp_packet(b"QC1")
else:
Expand Down

0 comments on commit edb69ac

Please sign in to comment.