diff options
author | Roland McGrath <roland@redhat.com> | 2009-11-22 20:42:53 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-12-09 01:01:28 -0800 |
commit | 6f1672172c9c9e5eb5afdcf521e3528b38b2e2dd (patch) | |
tree | f1ca70b5d1c32d593b0c2e825f10c56b49d14c06 /nptl_db/td_thr_event_getmsg.c | |
parent | ee1a7fabb4e0abd3e73e828ce326dcb5fd38b874 (diff) | |
download | glibc-roland/nptl_db.tar glibc-roland/nptl_db.tar.gz glibc-roland/nptl_db.tar.bz2 glibc-roland/nptl_db.zip |
Make libthread_db work without libpthread, just enough for TLS decoding.roland/nptl_db
Diffstat (limited to 'nptl_db/td_thr_event_getmsg.c')
-rw-r--r-- | nptl_db/td_thr_event_getmsg.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nptl_db/td_thr_event_getmsg.c b/nptl_db/td_thr_event_getmsg.c index 70ea6953ed..f10bb5ff01 100644 --- a/nptl_db/td_thr_event_getmsg.c +++ b/nptl_db/td_thr_event_getmsg.c @@ -1,5 +1,5 @@ /* Retrieve event. - 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. @@ -32,9 +32,12 @@ td_thr_event_getmsg (const td_thrhandle_t *th, td_event_msg_t *msg) LOG ("td_thr_event_getmsg"); + err = _td_ta_check_nptl (th->th_ta_p); + /* Copy the event message buffer in from the inferior. */ - err = DB_GET_FIELD_ADDRESS (eventbuf, th->th_ta_p, th->th_unique, pthread, - eventbuf, 0); + if (err == TD_OK) + err = DB_GET_FIELD_ADDRESS (eventbuf, th->th_ta_p, th->th_unique, pthread, + eventbuf, 0); if (err == TD_OK) err = DB_GET_STRUCT (copy, th->th_ta_p, eventbuf, td_eventbuf_t); if (err != TD_OK) |