Date: Tue, 9 Jun 2009 12:32:10 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193826 - head/lib/libthread_db Message-ID: <200906091232.n59CWA7J071175@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Tue Jun 9 12:32:10 2009 New Revision: 193826 URL: http://svn.freebsd.org/changeset/base/193826 Log: Revert r181651, which changed the ABI, and use a temp variable instead. Suggested by: attilio Modified: head/lib/libthread_db/libthr_db.c head/lib/libthread_db/thread_db.h Modified: head/lib/libthread_db/libthr_db.c ============================================================================== --- head/lib/libthread_db/libthr_db.c Tue Jun 9 11:39:23 2009 (r193825) +++ head/lib/libthread_db/libthr_db.c Tue Jun 9 12:32:10 2009 (r193826) @@ -457,6 +457,7 @@ pt_thr_get_info(const td_thrhandle_t *th { 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 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, Modified: head/lib/libthread_db/thread_db.h ============================================================================== --- head/lib/libthread_db/thread_db.h Tue Jun 9 11:39:23 2009 (r193825) +++ head/lib/libthread_db/thread_db.h Tue Jun 9 12:32:10 2009 (r193826) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906091232.n59CWA7J071175>