diff options
author | David Xu <davidxu@FreeBSD.org> | 2005-04-12 23:33:08 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2005-04-12 23:33:08 +0000 |
commit | b9da3fd79802731f5c1d75f06811d4ccc8092dbc (patch) | |
tree | 791be149744f597f333486aa6788b9d08b163be7 /lib/libthread_db | |
parent | 1e4500012d3adc4aec5891856a0aba5c4b45b38a (diff) | |
download | src-b9da3fd79802731f5c1d75f06811d4ccc8092dbc.tar.gz src-b9da3fd79802731f5c1d75f06811d4ccc8092dbc.zip |
Notes
Diffstat (limited to 'lib/libthread_db')
-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 1bbbc4f62864..0eefc7b5add0 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; |