From b5c6276a6ea23cf92e30132b92cf14119235b257 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 8 Oct 1999 17:16:17 +0000 Subject: Update. 1999-10-08 Ulrich Drepper * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_spent): Fix handling of empty entries. Patch by Thorsten Kukuk . 1999-10-08 Andreas Schwab * debug/xtrace.sh: Fix quoting bugs. Implement --help and --version. 1999-10-08 Andreas Schwab * debug/pcprofiledump.c: Fix typos. 1999-10-07 Andreas Jaeger * math/Makefile (tests): Added basic-tests. * math/basic-test.c: New file. Contains function basic_tests from libm-test. 1999-10-07 Andreas Schwab * malloc/memprof.sh: Fix quoting bugs. 1999-10-08 Ulrich Drepper * timezone/europe: Update from tzdata1999h. --- linuxthreads_db/td_ta_new.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'linuxthreads_db/td_ta_new.c') diff --git a/linuxthreads_db/td_ta_new.c b/linuxthreads_db/td_ta_new.c index d018ac6807..15f445a877 100644 --- a/linuxthreads_db/td_ta_new.c +++ b/linuxthreads_db/td_ta_new.c @@ -21,6 +21,7 @@ #include #include +#include #include "thread_dbP.h" @@ -33,7 +34,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) LOG (__FUNCTION__); /* See whether the library contains the necessary symbols. */ - if (ps_pglobal_lookup (ps, "libpthread.so.0", "__pthread_threads_debug", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "__pthread_threads_debug", &addr) != PS_OK) return TD_LIBTHREAD; @@ -47,7 +48,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) (*ta)->ph = ps; /* See whether the library contains the necessary symbols. */ - if (ps_pglobal_lookup (ps, "libpthread.so.0", "__pthread_handles", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "__pthread_handles", &addr) != PS_OK) { free_return: @@ -58,7 +59,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) (*ta)->handles = (struct pthread_handle_struct *) addr; - if (ps_pglobal_lookup (ps, "libpthread.so.0", "pthread_keys", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "pthread_keys", &addr) != PS_OK) goto free_return; @@ -68,7 +69,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) /* Find out about the maximum number of threads. Old implementations don't provide this information. In this case we assume that the debug library is compiled with the same values. */ - if (ps_pglobal_lookup (ps, "libpthread.so.0", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "__linuxthreads_pthread_threads_max", &addr) != PS_OK) (*ta)->pthread_threads_max = PTHREAD_THREADS_MAX; else @@ -79,7 +80,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) } /* Similar for the maximum number of thread local data keys. */ - if (ps_pglobal_lookup (ps, "libpthread.so.0", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "__linuxthreads_pthread_keys_max", &addr) != PS_OK) (*ta)->pthread_keys_max = PTHREAD_KEYS_MAX; else @@ -90,7 +91,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) } /* And for the size of the second level arrays for the keys. */ - if (ps_pglobal_lookup (ps, "libpthread.so.0", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "__linuxthreads_pthread_sizeof_descr", &addr) != PS_OK) (*ta)->sizeof_descr = offsetof (struct _pthread_descr_struct, p_startfct); @@ -101,7 +102,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) } /* Similar for the maximum number of thread local data keys. */ - if (ps_pglobal_lookup (ps, "libpthread.so.0", + if (ps_pglobal_lookup (ps, LIBPTHREAD_SO, "__linuxthreads_pthread_keys_max", &addr) != PS_OK) (*ta)->pthread_keys_max = PTHREAD_KEYS_MAX; else -- cgit v1.2.3