Skip to content

Commit

Permalink
Force forward slashes on Windows for static variable creation
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Sep 6, 2023
1 parent d4e6ee1 commit 6a1af25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/gdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2779,6 +2779,10 @@ export class GDBDebugSession extends LoggingDebugSession {
hasher.update(file || '');
const fHash = hasher.digest('hex');

if (os.platform() === 'win32') {
file = file.replace(/\\/g, '/');
}

for (const displayName of staticNames) {
const exprName = `'${file}'::${displayName}`;
const varObjName = this.createStaticVarName(fHash, exprName);
Expand Down

0 comments on commit 6a1af25

Please sign in to comment.