diff options
Diffstat (limited to 'nptl_db/td_ta_get_nthreads.c')
-rw-r--r-- | nptl_db/td_ta_get_nthreads.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl_db/td_ta_get_nthreads.c b/nptl_db/td_ta_get_nthreads.c index ffe78bd57e..a0480d1964 100644 --- a/nptl_db/td_ta_get_nthreads.c +++ b/nptl_db/td_ta_get_nthreads.c @@ -1,5 +1,5 @@ /* Get the number of threads in the process. - Copyright (C) 1999,2001,2002,2003 Free Software Foundation, Inc. + Copyright (C) 1999,2001,2002,2003,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 1999. @@ -33,6 +33,10 @@ td_ta_get_nthreads (const td_thragent_t *ta_arg, int *np) if (! ta_ok (ta)) return TD_BADTA; + err = _td_ta_check_nptl (ta); + if (err != TD_OK) + return err; + /* Access the variable in the inferior that tells us. */ err = DB_GET_VALUE (n, ta, __nptl_nthreads, 0); if (err == TD_OK) |