[newlib-cygwin/main] Cygwin: security: make sure the type DBGSID is in the DLL debug info
Corinna Vinschen
corinna@sourceware.org
Tue Feb 3 17:00:16 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b4f5979e9a51da4863e6d8199ad78f62888e5e73
commit b4f5979e9a51da4863e6d8199ad78f62888e5e73
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Tue Feb 3 17:58:12 2026 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Tue Feb 3 17:58:12 2026 +0100
Cygwin: security: make sure the type DBGSID is in the DLL debug info
This helps debugging the DLL when it comes to Windows account info
a lot.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/sec/base.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/winsup/cygwin/sec/base.cc b/winsup/cygwin/sec/base.cc
index 053494e5e17c..8a9d21a22ce5 100644
--- a/winsup/cygwin/sec/base.cc
+++ b/winsup/cygwin/sec/base.cc
@@ -24,6 +24,11 @@ details. */
#include "tls_pbuf.h"
#include <aclapi.h>
+/* This is just here to make sure the DBGSID definition is in the
+ debug information of the DLL, so it can be used to inspect SIDs
+ when running under GDB. */
+PDBGSID dbgsid;
+
#define ALL_SECURITY_INFORMATION (DACL_SECURITY_INFORMATION \
| GROUP_SECURITY_INFORMATION \
| OWNER_SECURITY_INFORMATION)
More information about the Cygwin-cvs
mailing list