Rebased with the first 3 commits (f30d1038..c100412f) allowing GDB to hook into wine preloader, and add support for dynamically loaded system libs as well as SO or even PE modules. Running a Wine process under GDB should just work almost as a native process, with `gdb --args build64/loader/wine64 build64/programs/winecfg/x86_64-windows/winecfg.exe` and allows to step in the code and get debug symbols get loaded whenever the modules are loaded.
This is slightly less well integrated as normal `ld.so` integration, as we can only mirror `ld.so` link map and cannot really hook into it to send GDB the fine grained notifications. In practice this has the effect that .so libraries constructors are executed before we can notify GDB of the newly loaded shared library.