https://bugs.winehq.org/show_bug.cgi?id=57308
--- Comment #6 from Bernhard Übelacker bernhardu@mailbox.org --- For having a buildid inside the PE files the configure option `--enable-build-id` seems to be relevant.
One method to retrieve this buildid might be this: x86_64-w64-mingw32-objcopy --output-target=binary \ --only-section=.buildid notepad-test.exe \ /dev/stdout | xxd -plain -seek 28 -l 20
Unfortunately I still have not observed an attempt of winedbg to use it with `get_dos_file_name("/usr/lib/debug/.build-id/...") for the PE exe.
Also I wonder if a call to image_check_debug_link_crc with somethign like "/usr/lib/debug/\??\Z:\path\to\notepad.exe.debug" is supposed to work?
Because of the `lstrcpyW(p, module->real_path);` in dlls/dbghelp/module.c:624 there appears this `\??\` between the globaldebugdir and the wine path. Without this `get_dos_file_name` would probably be able to construct a valid "$WINEPREFIX/dosdevices/z:/usr/lib/debug/.build-id/..." path?