Fixes crash handler for jenkins builds. (#1445)

* Fixes crash handler for jenkins builds.

We must include the pdb in redistributables.

* Properly selects PDB file path for inclusion

Co-authored-by: Christopher Leggett <chris@leggett.dev>
This commit is contained in:
Kenix3 2022-09-11 23:15:10 -04:00 committed by GitHub
commit a2d4f4766d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -293,7 +293,9 @@ static void printStack(CONTEXT* ctx) {
process = GetCurrentProcess();
thread = GetCurrentThread();
SymInitialize(process, nullptr, true);
SymSetOptions(SYMOPT_NO_IMAGE_SEARCH | SYMOPT_IGNORE_IMAGEDIR);
SymInitialize(process, "debug", true);
constexpr DWORD machineType =