diff --git a/debian/patches/1001_keep-symbol-DumpThreadHandles-if-debugging-is-disabled.patch b/debian/patches/1001_keep-symbol-DumpThreadHandles-if-debugging-is-disabled.patch new file mode 100644 index 0000000..255bdc9 --- /dev/null +++ b/debian/patches/1001_keep-symbol-DumpThreadHandles-if-debugging-is-disabled.patch @@ -0,0 +1,38 @@ +Description: Keep DumpThreadHandles as a symbol even if WITH_DEBUG_THREADS is OFF. +Author: Mike Gabriel +Forwarded: https://github.com/FreeRDP/FreeRDP/pull/7708 + +--- a/winpr/libwinpr/thread/thread.c ++++ b/winpr/libwinpr/thread/thread.c +@@ -783,9 +783,9 @@ + return TRUE; + } + +-#if defined(WITH_DEBUG_THREADS) + VOID DumpThreadHandles(void) + { ++#if defined(WITH_DEBUG_THREADS) + char** msg; + size_t used, i; + void* stack = winpr_backtrace(20); +@@ -846,6 +846,6 @@ + } + + WLog_DBG(TAG, "---------------- End Dumping thread handles -------------"); +-} + #endif ++} + #endif +--- a/winpr/include/winpr/thread.h ++++ b/winpr/include/winpr/thread.h +@@ -248,10 +248,7 @@ + /* CommandLineToArgvA is not present in the original Windows API, WinPR always exports it */ + + WINPR_API LPSTR* CommandLineToArgvA(LPCSTR lpCmdLine, int* pNumArgs); +- +-#if defined(WITH_DEBUG_THREADS) + WINPR_API VOID DumpThreadHandles(void); +-#endif + + #ifdef __cplusplus + } diff --git a/debian/patches/series b/debian/patches/series index 9edc801..3b76fa4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -22,3 +22,4 @@ 0033-Reverted-winpr_BinToHexString-argument-change.patch 0034-Fixed-6938-Remote-app-mode-clipboard-fix.patch 0035-Fixed-6989-Use-X509_STORE_set_default_paths.patch +1001_keep-symbol-DumpThreadHandles-if-debugging-is-disabled.patch