Skip to content

Commit

Permalink
Explicitly set the symbol options, image and pdb paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Jan 2, 2025
1 parent c85b009 commit 55144b3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/common/platform/win32/i_crash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,16 @@ void I_AddMinidumpCallstack(const FString& minidumpFilename, FString& text, FStr
if (FAILED(result))
return;

symbols->AppendImagePathWide(GetExePath().c_str());
symbols->AppendSymbolPathWide(GetExePath().c_str());
symbols->SetSymbolOptions(
SYMOPT_CASE_INSENSITIVE |
SYMOPT_UNDNAME |
SYMOPT_DEFERRED_LOADS |
SYMOPT_LOAD_LINES |
SYMOPT_OMAP_FIND_NEAREST |
SYMOPT_FAIL_CRITICAL_ERRORS |
SYMOPT_NO_PROMPTS);
symbols->SetImagePathWide(GetExePath().c_str());
symbols->SetSymbolPathWide(GetExePath().c_str());

result = client->OpenDumpFileWide(minidumpFilename.WideString().c_str(), 0);
if (FAILED(result))
Expand Down

0 comments on commit 55144b3

Please sign in to comment.