https://bugs.winehq.org/show_bug.cgi?id=55964
--- Comment #3 from Bernhard Übelacker bernhardu@mailbox.org --- (In reply to Esme Povirk from comment #2)
Are the debug symbols working OK otherwise? I never worked out how to use them.
LLDB was able to use, with environment LLDB_USE_NATIVE_PDB_READER=1 and native msdia140.dll it showed also inlined frames. So yes, the PDB itself works like a charm.
Unfortunately, it's hard to move/rename the libmono dll's because old Wine versions will look for them in the old place. I'm hoping it'll be possible to specify the pdb name in LDFLAGS at build time.
I do not want to change anything about the final "libmono-2.0-x86_64.dll" filename in existing or new wineprefixes.
It is just the dll is built into filename libmonosgen-2.0.dll, therefore both x86 and x86_64 contain therefore the PDB reference to "libmonosgen-2.0.pdb".
During install step it gets copied into image/bin/libmono-2.0-x86_64.{dll,pdb}, but the dlls still point to "libmonosgen-2.0.pdb".
The relevant install step from "make bin":
do_install () { cp "$(printf %s "$1"|sed -e 's/....$/.pdb/')" "$(printf %s "$2"|sed -e 's/....$/.pdb/')"; cp "$1" "$2" PATH=.../llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin:$PATH x86_64-w64-mingw32-strip "$2"; }; do_install ".//build/mono-x86_64/mono/mini/.libs/libmonosgen-2.0.dll" ".//image/bin/libmono-2.0-x86_64.dll"