Skip to content

Commit

Permalink
fix(gdbclient): accept S response in singleStep()
Browse files Browse the repository at this point in the history
This allows gdbclient to interact with our own gdbserver
  • Loading branch information
urish committed May 14, 2021
1 parent f83f4a1 commit ec37748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/gdbclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class GDBClient {

async singleStep() {
const response = await this.sendCommand('vCont;s:1;c');
if (!response.startsWith('T')) {
if (!response.startsWith('T') && !response.startsWith('S')) {
throw new Error(`Invalid singleStep response: ${response}`);
}
}
Expand Down

0 comments on commit ec37748

Please sign in to comment.