diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-04-12 23:33:08 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-04-12 23:33:08 +0000 |
commit | 1f525cc1908f86461af8c459072759055e7c016c (patch) | |
tree | 791be149744f597f333486aa6788b9d08b163be7 /lib | |
parent | 60ff5c6430d70ffd98d4d3efdaf03515ae2dbc49 (diff) | |
download | FreeBSD-src-1f525cc1908f86461af8c459072759055e7c016c.zip FreeBSD-src-1f525cc1908f86461af8c459072759055e7c016c.tar.gz |
Fill traceme and events fields.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthread_db/libthr_db.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libthread_db/libthr_db.c b/lib/libthread_db/libthr_db.c index 1bbbc4f..0eefc7b 100644 --- a/lib/libthread_db/libthr_db.c +++ b/lib/libthread_db/libthr_db.c @@ -598,6 +598,14 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) &state, sizeof(state)); if (ret != 0) return (P2T(ret)); + ret = ps_pread(ta->ph, ta->map[th->th_tid].thr + ta->thread_off_report_events, + &info->ti_traceme, sizeof(int)); + if (ret != 0) + return (P2T(ret)); + ret = ps_pread(ta->ph, ta->map[th->th_tid].thr + ta->thread_off_event_mask, + &info->ti_events, sizeof(td_thr_events_t)); + if (ret != 0) + return (P2T(ret)); info->ti_lid = ta->map[th->th_tid].lwp; info->ti_tid = th->th_tid; info->ti_thread = ta->map[th->th_tid].thr; |