aboutsummaryrefslogtreecommitdiff
path: root/nptl_db/td_thr_clear_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl_db/td_thr_clear_event.c')
-rw-r--r--nptl_db/td_thr_clear_event.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/nptl_db/td_thr_clear_event.c b/nptl_db/td_thr_clear_event.c
index fc999df9c2..6e7b33481e 100644
--- a/nptl_db/td_thr_clear_event.c
+++ b/nptl_db/td_thr_clear_event.c
@@ -1,5 +1,5 @@
/* Disable specific event for thread.
- 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.
@@ -34,9 +34,12 @@ td_thr_clear_event (th, event)
LOG ("td_thr_clear_event");
+ err = _td_ta_check_nptl (th->th_ta_p);
+
/* Fetch the old event mask from the inferior and modify it in place. */
- err = DB_GET_FIELD_ADDRESS (eventmask, th->th_ta_p,
- th->th_unique, pthread, eventbuf_eventmask, 0);
+ if (err == TD_OK)
+ err = DB_GET_FIELD_ADDRESS (eventmask, th->th_ta_p,
+ th->th_unique, pthread, eventbuf_eventmask, 0);
if (err == TD_OK)
err = DB_GET_STRUCT (copy, th->th_ta_p, eventmask, td_thr_events_t);
if (err == TD_OK)