about summary refs log tree commit diff
path: root/nptl_db/structs.def
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:50 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:50 +0200
commit7a7229de1da3966e5e69e7c8d4746984003db4a6 (patch)
tree5ad49a9570797f1687ba8c1319d0f8fc6738ac6b /nptl_db/structs.def
parent43fe356d18e12b5826dfee4c0b57b5c75c3a9a72 (diff)
downloadglibc-7a7229de1da3966e5e69e7c8d4746984003db4a6.tar.gz
glibc-7a7229de1da3966e5e69e7c8d4746984003db4a6.tar.xz
glibc-7a7229de1da3966e5e69e7c8d4746984003db4a6.zip
nptl_db: Introduce DB_MAIN_ARRAY_VARIABLE
And document the reason for DB_ARRAY_VARIABLE.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl_db/structs.def')
-rw-r--r--nptl_db/structs.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl_db/structs.def b/nptl_db/structs.def
index 8aacbe0634..6de2700f84 100644
--- a/nptl_db/structs.def
+++ b/nptl_db/structs.def
@@ -26,9 +26,14 @@
 # define DB_RTLD_VARIABLE(name) DB_VARIABLE (name)
 #endif
 
+/* DB_MAIN_VARIABLE and DB_MAIN_ARRAY_VARIABLE are not covered by the
+   libpthread symbol check in db-symbols.awk.  */
 #ifndef DB_MAIN_VARIABLE
 # define DB_MAIN_VARIABLE(name) DB_VARIABLE (name)
 #endif
+#ifndef DB_MAIN_ARRAY_VARIABLE
+# define DB_MAIN_ARRAY_VARIABLE(name) DB_ARRAY_VARIABLE (name)
+#endif
 
 #ifndef DB_RTLD_GLOBAL_FIELD
 # if !IS_IN (libpthread)