From eef8427f5c502cbeac6baa8f181c91ca4eee11f8 Mon Sep 17 00:00:00 2001 From: Luke Zhang Date: Fri, 8 Nov 2024 15:56:20 -0500 Subject: [PATCH] do not require wait pause if GDB async mode is false Signed-off-by: Luke Zhang --- src/gdb/GDBDebugSessionBase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdb/GDBDebugSessionBase.ts b/src/gdb/GDBDebugSessionBase.ts index 04c6dae2..48608d23 100644 --- a/src/gdb/GDBDebugSessionBase.ts +++ b/src/gdb/GDBDebugSessionBase.ts @@ -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 { - this.waitPausedNeeded = this.isRunning && this.gdb.getAsyncMode(); + this.waitPausedNeeded = this.isRunning; if (this.waitPausedNeeded) { const waitPromise = new Promise((resolve) => {