Skip to content

Commit

Permalink
Correctly reject QEnableErrorStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Feb 26, 2024
1 parent e13b60a commit ac3f166
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/GdbServerConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,6 @@ bool GdbServerConnection::query(char* payload) {
write_packet("");
return false;
}
if (!strcmp(name, "EnableErrorStrings")) {
// We don't support human-readable error strings.
write_packet("");
return false;
}

UNHANDLED_REQ() << "Unhandled debugger query: q" << name;
return false;
Expand Down Expand Up @@ -910,6 +905,11 @@ bool GdbServerConnection::set_var(char* payload) {
write_packet("OK");
return false;
}
if (!strcmp(name, "EnableErrorStrings")) {
// We don't support human-readable error strings.
write_packet("");
return false;
}

UNHANDLED_REQ() << "Unhandled debugger set: Q" << name;
return false;
Expand Down

0 comments on commit ac3f166

Please sign in to comment.