aboutsummaryrefslogtreecommitdiff
path: root/nptl_db/db-symbols.awk
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-11-22 20:42:53 -0800
committerRoland McGrath <roland@redhat.com>2009-12-09 01:01:28 -0800
commit6f1672172c9c9e5eb5afdcf521e3528b38b2e2dd (patch)
treef1ca70b5d1c32d593b0c2e825f10c56b49d14c06 /nptl_db/db-symbols.awk
parentee1a7fabb4e0abd3e73e828ce326dcb5fd38b874 (diff)
downloadglibc-roland/nptl_db.tar
glibc-roland/nptl_db.tar.gz
glibc-roland/nptl_db.tar.bz2
glibc-roland/nptl_db.zip
Make libthread_db work without libpthread, just enough for TLS decoding.roland/nptl_db
Diffstat (limited to 'nptl_db/db-symbols.awk')
-rw-r--r--nptl_db/db-symbols.awk4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl_db/db-symbols.awk b/nptl_db/db-symbols.awk
index f9a91b93bf..ce8701c806 100644
--- a/nptl_db/db-symbols.awk
+++ b/nptl_db/db-symbols.awk
@@ -1,6 +1,10 @@
# This script processes the output of 'readelf -W -s' on the libpthread.so
# we've just built. It checks for all the symbols used in td_symbol_list.
+%ifndef IS_IN_rtld
+%define IS_IN_libpthread
+%endif
+
BEGIN {
%define DB_LOOKUP_NAME(idx, name) required[STRINGIFY (name)] = 1;
%define DB_LOOKUP_NAME_TH_UNIQUE(idx, name) th_unique[STRINGIFY (name)] = 1;