Fixes crash handler. (#1446)

We need to include the PDB with the distributable.
This commit is contained in:
Kenix3 2022-09-08 22:51:56 -04:00 committed by GitHub
parent 3223331e76
commit 674bc4cc3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -57,14 +57,17 @@ pipeline {
"${env.CMAKE}" --build . --config Release
cd "..\\..\\"
mkdir debug
move "soh\\x64\\Release\\soh.exe" ".\\"
move "soh\\x64\\Release\\soh.pdb" ".\\debug\\"
move "OTRGui\\build\\assets" ".\\"
move ".\\OTRExporter\\x64\\Release\\ZAPD.exe" ".\\assets\\extractor\\"
move ".\\OTRGui\\build\\Release\\OTRGui.exe" ".\\"
rename README.md readme.txt
"${env.ZIP}" a soh.7z soh.exe OTRGui.exe assets readme.txt
"${env.ZIP}" a soh.7z soh.exe OTRGui.exe assets debug readme.txt
"""
archiveArtifacts artifacts: 'soh.7z', followSymlinks: false, onlyIfSuccessful: true

View File

@ -288,8 +288,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 =
#if defined(_M_AMD64)