Skip to content

Commit

Permalink
Merge pull request #435 from HenryRiley0/static_variable
Browse files Browse the repository at this point in the history
fix static variable not showing
  • Loading branch information
GitMensch committed Aug 26, 2024
2 parents 7196ed1 + 6f48d86 commit b7ada8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/backend/gdb_expansion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7ada8c

Please sign in to comment.