From 6f48d8624b51f1d3ba4cd3417f189657a6434a72 Mon Sep 17 00:00:00 2001 From: xuhong Date: Fri, 23 Aug 2024 17:36:45 +0800 Subject: [PATCH] 1.add static variable support --- CHANGELOG.md | 1 + src/backend/gdb_expansion.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b41a3c0b..f52dac84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Versioning]. ### Added +- add static variable support ([@henryriley0]) - fix gdb check error when debug beginning ([@henryriley0]) - fix implicitly type error in log message when build vsix ([@henryriley0]) - check for configured debugger before start to provide a nicer error message diff --git a/src/backend/gdb_expansion.ts b/src/backend/gdb_expansion.ts index 250a0d03..0b10e6d0 100644 --- a/src/backend/gdb_expansion.ts +++ b/src/backend/gdb_expansion.ts @@ -197,6 +197,7 @@ export function expandValue(variableCreate: (arg: VariableObject | string, optio parseResult = (pushToStack: boolean = false) => { value = value.trim(); + value = value.replace(/^static /, ""); const variableMatch = resultRegex.exec(value); if (!variableMatch) return undefined;