diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2009-06-09 12:32:10 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2009-06-09 12:32:10 +0000 |
commit | 18860a1cdfe8761e8f4b369cd40a6842f9ac7bcc (patch) | |
tree | fdbd65e6d7f879d4ee37fe1c79166e4d1c21b16f | |
parent | f7bde4e83660463d57fb93b664ef536bc520d6cf (diff) |
Notes
-rw-r--r-- | lib/libthread_db/libthr_db.c | 4 | ||||
-rw-r--r-- | lib/libthread_db/thread_db.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libthread_db/libthr_db.c b/lib/libthread_db/libthr_db.c index 7c6aa2db2de0..f79facb84d21 100644 --- a/lib/libthread_db/libthr_db.c +++ b/lib/libthread_db/libthr_db.c @@ -457,6 +457,7 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) { const td_thragent_t *ta = th->th_ta; struct ptrace_lwpinfo linfo; + int traceme; int state; int ret; @@ -470,7 +471,8 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) if (ret != 0) return (TD_ERR); ret = thr_pread_int(ta, th->th_thread + ta->thread_off_report_events, - &info->ti_traceme); + &traceme); + info->ti_traceme = traceme; if (ret != 0) return (TD_ERR); ret = ps_pread(ta->ph, th->th_thread + ta->thread_off_event_mask, diff --git a/lib/libthread_db/thread_db.h b/lib/libthread_db/thread_db.h index ee71e0605892..44ddea490a79 100644 --- a/lib/libthread_db/thread_db.h +++ b/lib/libthread_db/thread_db.h @@ -184,7 +184,7 @@ typedef struct { int ti_pri; lwpid_t ti_lid; char ti_db_suspended; - int ti_traceme; + char ti_traceme; sigset_t ti_sigmask; sigset_t ti_pending; psaddr_t ti_tls; |