summaryrefslogtreecommitdiff
path: root/linuxthreads_db/td_ta_enable_stats.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-05 02:26:16 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-05 02:26:16 +0000
commit9532eb67a4a92baab960d8d37bfa28048285dabb (patch)
tree179887a0e1239d9aebb41cffb1134f019712b56b /linuxthreads_db/td_ta_enable_stats.c
parentab86fbb1d2866df567219904982dac61751808e5 (diff)
Update.
1999-11-03 Ulrich Drepper <drepper@cygnus.com> * Versions.def: Add version for libthread_db.
Diffstat (limited to 'linuxthreads_db/td_ta_enable_stats.c')
-rw-r--r--linuxthreads_db/td_ta_enable_stats.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads_db/td_ta_enable_stats.c b/linuxthreads_db/td_ta_enable_stats.c
index eb3a338b29..abf4d200a9 100644
--- a/linuxthreads_db/td_ta_enable_stats.c
+++ b/linuxthreads_db/td_ta_enable_stats.c
@@ -26,5 +26,10 @@ td_ta_enable_stats (const td_thragent_t *ta, int enable)
{
/* XXX We have to figure out what has to be done. */
LOG (__FUNCTION__);
+
+ /* Test whether the TA parameter is ok. */
+ if (! ta_ok (ta))
+ return TD_BADTA;
+
return TD_OK;
}