aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2026-02-03 17:58:12 +0100
committerCorinna Vinschen <corinna@vinschen.de>2026-02-03 17:58:12 +0100
commitb4f5979e9a51da4863e6d8199ad78f62888e5e73 (patch)
treecdbada264317bc419379194b2922c4c7d49265c5
parentede7cbc9946b23da883b98d5d757ab00f135151b (diff)
downloadnewlib-master.zip
newlib-master.tar.gz
newlib-master.tar.bz2
Cygwin: security: make sure the type DBGSID is in the DLL debug infoHEADgithub/mastergithub/mainmastermain
This helps debugging the DLL when it comes to Windows account info a lot. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/sec/base.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/sec/base.cc b/winsup/cygwin/sec/base.cc
index 053494e..8a9d21a 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)