diff options
author | des <des@FreeBSD.org> | 2009-06-09 12:32:10 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2009-06-09 12:32:10 +0000 |
commit | 1ae61ff79c5773a71ea32e2f3571dc726f547c46 (patch) | |
tree | fdbd65e6d7f879d4ee37fe1c79166e4d1c21b16f /lib/libthread_db/libthr_db.c | |
parent | d2f8e2a2284f52653b066bebdbd346a464e1d9be (diff) | |
download | FreeBSD-src-1ae61ff79c5773a71ea32e2f3571dc726f547c46.zip FreeBSD-src-1ae61ff79c5773a71ea32e2f3571dc726f547c46.tar.gz |
Revert r181651, which changed the ABI, and use a temp variable instead.
Suggested by: attilio
Diffstat (limited to 'lib/libthread_db/libthr_db.c')
-rw-r--r-- | lib/libthread_db/libthr_db.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthread_db/libthr_db.c b/lib/libthread_db/libthr_db.c index 7c6aa2d..f79facb 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, |