Add support for symbolicating raw .dmp files
This commit is contained in:
parent
90d36350a7
commit
30da67da1a
1 changed files with 11 additions and 1 deletions
|
@ -108,7 +108,17 @@ async function symbolicate(
|
|||
await fs.mkdir(tmpDir, { recursive: true });
|
||||
|
||||
const encoded = await fs.readFile(fileName);
|
||||
const { reports } = Proto.CrashReportList.decode(encoded);
|
||||
let reports: ReadonlyArray<Proto.ICrashReport>;
|
||||
if (fileName.endsWith('.dmp')) {
|
||||
reports = [
|
||||
{
|
||||
filename: 'report.dmp',
|
||||
content: encoded,
|
||||
},
|
||||
];
|
||||
} else {
|
||||
({ reports } = Proto.CrashReportList.decode(encoded));
|
||||
}
|
||||
|
||||
const { name: prefix } = path.parse(fileName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue