From d578d4be287667346b60dd9c0195f80b8b13247d Mon Sep 17 00:00:00 2001 From: Haneef Mohammed Date: Tue, 21 Sep 2021 10:07:44 -0700 Subject: [PATCH] VSCode confused of JLink running state - a workaround --- src/gdb.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gdb.ts b/src/gdb.ts index 8f5393e0..e7d85dc5 100644 --- a/src/gdb.ts +++ b/src/gdb.ts @@ -600,11 +600,13 @@ export class GDBDebugSession extends DebugSession { if ((mode !== SessionMode.ATTACH) && this.args.noDebug) { if (!commands) { commands = []; } - this.continuing = true; + // Since this is part of startup/reset/restart, don't set this flag. Interfers if we continue afger reset (Jlink) + // this.continuing = true; commands.push('-exec-continue'); } else if (!this.args.breakAfterReset && (mode !== SessionMode.ATTACH) && (!commands || (commands.length === 0))) { // This function is not called if 'runToEntryPoint' was used - this.continuing = true; + // Since this is part of startup/reset/restart, don't set this flag. Interfers if we continue afger reset (Jlink) + // this.continuing = true; commands = ['-exec-continue']; }