Skip to content

Commit

Permalink
Ignore qStructuredDataPlugins packets because they're not documente…
Browse files Browse the repository at this point in the history
…d and `lldb-server` doesn't support them
  • Loading branch information
rocallahan committed Mar 8, 2024
1 parent 112844f commit 22b4da7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/GdbServerConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ bool GdbServerConnection::query(char* payload) {
return true;
}

// Packets that we intentionally don't support

if (!strcmp(name, "P")) {
/* The docs say not to use this packet ... */
write_packet("");
Expand Down Expand Up @@ -898,6 +900,11 @@ bool GdbServerConnection::query(char* payload) {
write_packet("");
return false;
}
if (!strcmp(name, "StructuredDataPlugins")) {
// This isn't documented and lldb-server doesn't support it
write_packet("");
return false;
}

UNHANDLED_REQ() << "Unhandled debugger query: q" << name;
return false;
Expand Down

0 comments on commit 22b4da7

Please sign in to comment.