Skip to content

Commit

Permalink
feat: support prx and sprx (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 committed May 15, 2024
1 parent 8fb9a51 commit 3253a69
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@
],
"type": "node"
},
{
"name": "Start: elf",
"request": "launch",
"runtimeArgs": [
"run-script",
"start:elf",
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"name": "Start: dump_syms",
"request": "launch",
Expand Down
6 changes: 4 additions & 2 deletions src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ async function createSymbolFileInfos(symbolFilePath: string): Promise<SymbolFile
const isSymFile = extLowerCase.includes('.sym');
const isPdbFile = extLowerCase.includes('.pdb');
const isPeFile = extLowerCase.includes('.exe') || extLowerCase.includes('.dll');
const isElfFile = extLowerCase.includes('.elf') || extLowerCase.includes('.self');
const isDsymFile = extLowerCase.includes('.dsym');
const isElfFile = elfExtensions.some((ext) => extLowerCase.includes(ext));

if (isPdbFile) {
const dbgId = await tryGetPdbGuid(path);
Expand Down Expand Up @@ -84,4 +84,6 @@ async function createSymbolFileInfos(symbolFilePath: string): Promise<SymbolFile
dbgId,
moduleName,
} as SymbolFileInfo];
}
}

const elfExtensions = ['.elf', '.self', '.prx', '.sprx'];

0 comments on commit 3253a69

Please sign in to comment.