diff --git a/Jenkinsfile b/Jenkinsfile index f9ac7e7c8e..2784588992 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 diff --git a/libultraship/libultraship/CrashHandler.cpp b/libultraship/libultraship/CrashHandler.cpp index a01a82e676..ea0fb9d152 100644 --- a/libultraship/libultraship/CrashHandler.cpp +++ b/libultraship/libultraship/CrashHandler.cpp @@ -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)