debian/patches/: Drop 1001_keep-symbol-DumpThreadHandles-if-debugging-is-disabled.patch. Applied upstream, but only partially. Add 1001_amend-DumpThreadHandles-inclusion.patch. Amend missing adjustment in thread.h.
This commit is contained in:
parent
cfbb8ebcbd
commit
ce847dee67
15
debian/patches/1001_amend-DumpThreadHandles-inclusion.patch
vendored
Normal file
15
debian/patches/1001_amend-DumpThreadHandles-inclusion.patch
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
Description: Amend missing header changes as found in d337ea9c16edab254f1ce731d475a50a622886f9.
|
||||
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
|
||||
|
||||
--- a/winpr/include/winpr/thread.h
|
||||
+++ b/winpr/include/winpr/thread.h
|
||||
@@ -249,9 +249,7 @@
|
||||
|
||||
WINPR_API LPSTR* CommandLineToArgvA(LPCSTR lpCmdLine, int* pNumArgs);
|
||||
|
||||
-#if defined(WITH_DEBUG_THREADS)
|
||||
WINPR_API VOID DumpThreadHandles(void);
|
||||
-#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
@ -1,38 +0,0 @@
|
||||
Description: Keep DumpThreadHandles as a symbol even if WITH_DEBUG_THREADS is OFF.
|
||||
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
|
||||
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
|
||||
}
|
||||
2
debian/patches/series
vendored
2
debian/patches/series
vendored
@ -1 +1 @@
|
||||
1001_keep-symbol-DumpThreadHandles-if-debugging-is-disabled.patch
|
||||
1001_amend-DumpThreadHandles-inclusion.patch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user