Don't run the checks unless `_CFLAGS` or `_LIBS` is non-empty (either because they were specified manually or `pkg-config` found the package).
This fixes an issue seen on macOS: PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH were set empty to prevent pkg-config from using any system-installed packages, but FFmpeg was installed in /usr/local and AC_CHECK_HEADERS/LIBS succeeded despite FFMPEG_CFLAGS/LIBS being empty. configure printed "FFmpeg development files not found.", but HAVE_FFMPEG was still set. The winedmo files compiled, but failed to link because FFMPEG_LIBS was empty.
This should also speed up configure slightly, by skipping header checks for not-installed packages.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/9313
Fixes backtraces in Visual Studio Remote Debugging when the remote program is running on wine.
Not sure if this is entirely right yet, maybe the offset/size check should also be moved further up?
Test file is attached ( [map_test.c](/uploads/4d5b426fd9ad931ef4027332f75b1bd9/map_test.c) ), however it's probably not ideal since it tests against the value that the compiler happens to put at offset 0x10000 (I tested with mingw64 GCC). In any case this value just needs to match windows, so for other compilers it can be obtained by running the test on windows. This could probably be improved with a linker script if wanted.
--
v4: ntdll: Respect offset for image mappings.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8927
Fixes backtraces in Visual Studio Remote Debugging when the remote program is running on wine.
Not sure if this is entirely right yet, maybe the offset/size check should also be moved further up?
Test file is attached ( [map_test.c](/uploads/4d5b426fd9ad931ef4027332f75b1bd9/map_test.c) ), however it's probably not ideal since it tests against the value that the compiler happens to put at offset 0x10000 (I tested with mingw64 GCC). In any case this value just needs to match windows, so for other compilers it can be obtained by running the test on windows. This could probably be improved with a linker script if wanted.
--
v3: ntdll: Respect offset for image mappings.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8927
Fixes backtraces in Visual Studio Remote Debugging when the remote program is running on wine.
Not sure if this is entirely right yet, maybe the offset/size check should also be moved further up?
Test file is attached ( [map_test.c](/uploads/4d5b426fd9ad931ef4027332f75b1bd9/map_test.c) ), however it's probably not ideal since it tests against the value that the compiler happens to put at offset 0x10000 (I tested with mingw64 GCC). In any case this value just needs to match windows, so for other compilers it can be obtained by running the test on windows. This could probably be improved with a linker script if wanted.
--
v2: ntdll: Respect offset for image mappings.
ntdll/tests: Test image mapping with offset.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8927
Another dependency for !9209.
When C++/CX applications manually throw exceptions (i.e, by calling `_CxxThrowException` and not `__abi_WinRTraise*`), msvcrt/ucrt will still use the `cxx_exception_type` RTTI data from `vccorlib`, and not the one passed by the user. It also invokes a callback inside `exception_info`, which likely performs the necessary RoOriginateError/RoOriginateLanguageException bookkeeping and sets the `IRestrictedErrorInfo` field.
--
v3: msvcrt: Update WinRT exception type info in _CxxThrowException.
msvcrt: Rename exception *IUNKNOWN flags to *WINRT.
https://gitlab.winehq.org/wine/wine/-/merge_requests/9306