diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-11-05 02:26:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-11-05 02:26:16 +0000 |
commit | 9532eb67a4a92baab960d8d37bfa28048285dabb (patch) | |
tree | 179887a0e1239d9aebb41cffb1134f019712b56b /linuxthreads_db/thread_dbP.h | |
parent | ab86fbb1d2866df567219904982dac61751808e5 (diff) | |
download | glibc-9532eb67a4a92baab960d8d37bfa28048285dabb.zip glibc-9532eb67a4a92baab960d8d37bfa28048285dabb.tar.gz glibc-9532eb67a4a92baab960d8d37bfa28048285dabb.tar.bz2 |
Update.
1999-11-03 Ulrich Drepper <drepper@cygnus.com>
* Versions.def: Add version for libthread_db.
Diffstat (limited to 'linuxthreads_db/thread_dbP.h')
-rw-r--r-- | linuxthreads_db/thread_dbP.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/linuxthreads_db/thread_dbP.h b/linuxthreads_db/thread_dbP.h index 6092183..7e9fb48 100644 --- a/linuxthreads_db/thread_dbP.h +++ b/linuxthreads_db/thread_dbP.h @@ -50,4 +50,29 @@ struct td_thragent }; +/* Type used internally to keep track of thread agent descriptors. */ +struct agent_list +{ + td_thragent_t *ta; + struct agent_list *next; +}; + +/* List of all known descriptors. */ +extern struct agent_list *__td_agent_list; + +/* Function used to test for correct thread agent pointer. */ +static inline int +ta_ok (const td_thragent_t *ta) +{ + struct agent_list *runp = __td_agent_list; + + if (ta == NULL) + return 0; + + while (runp != NULL && runp->ta != ta) + runp = runp->next; + + return runp != NULL; +} + #endif /* thread_dbP.h */ |