Open ObeliskGate opened 4 months ago
I'm not sure if this can be fixed from withing std::stacktrace
implementation in this repo and not causing other problems by a possible fix.
I think we need proper upstream API to hadnle this scenario.
I've reported it as one of the problems in DevCom-10692305.
The quick workaround is to make sure each pathless PDB is in the working directory. Also note that running within VS starts in ProjectDir instead of OutDir by default.
The quick workaround is to make sure each pathless PDB is in the working directory. Also note that running within VS starts in ProjectDir instead of OutDir by default.
for a .dll
file loaded by LoadLobrary
in a more complicated scenario (like Python extension), that's something tricky because sometimes I even don't know the cwd of .exe
.
I'm going to use
std::stacktrace
in a.dll
whitch is loaded byLoadLibrary
. While I have followed the instruction from a previous issue #2779 and passed/PDBALTPATH:%_PDB%
tolink.exe
for two binaries, the.pdb
file fails to load correctly. The current directory structure is:sources of the two binaries is:
dll.cpp
test.cpp
head.h
And when I run
test.exe
, it prints something like:, indicating that
dll.pdb
is not loaded correctly (otherwise it should print the directory ofdll.cpp
).Since the document of
std::stacktrace
is missing, is there any solution?