Skip to content

Commit

Permalink
do not require wait pause if GDB async mode is false
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Zhang <[email protected]>
  • Loading branch information
Luke-zhang-mchp committed Nov 8, 2024
1 parent a59ad98 commit eef8427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdb/GDBDebugSessionBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export abstract class GDBDebugSessionBase extends LoggingDebugSession {
* actually paused. The paused thread ID is saved to `this.waitPausedThreadId`.
*/
protected async pauseIfNeeded(): Promise<void> {
this.waitPausedNeeded = this.isRunning && this.gdb.getAsyncMode();
this.waitPausedNeeded = this.isRunning;

if (this.waitPausedNeeded) {
const waitPromise = new Promise<void>((resolve) => {
Expand Down

0 comments on commit eef8427

Please sign in to comment.