From owner-svn-src-all@FreeBSD.ORG Tue Jun 9 15:20:36 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89CDD106564A; Tue, 9 Jun 2009 15:20:36 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 760598FC12; Tue, 9 Jun 2009 15:20:36 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n59FKagI075791; Tue, 9 Jun 2009 15:20:36 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n59FKa8I075789; Tue, 9 Jun 2009 15:20:36 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <200906091520.n59FKa8I075789@svn.freebsd.org> From: Attilio Rao Date: Tue, 9 Jun 2009 15:20:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193838 - stable/6/lib/libthread_db X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 15:20:37 -0000 Author: attilio Date: Tue Jun 9 15:20:36 2009 New Revision: 193838 URL: http://svn.freebsd.org/changeset/base/193838 Log: MFC r193826: avoid to write a int into a char * avoiding breakages on BE architectures. Modified: stable/6/lib/libthread_db/libthr_db.c stable/6/lib/libthread_db/thread_db.h Modified: stable/6/lib/libthread_db/libthr_db.c ============================================================================== --- stable/6/lib/libthread_db/libthr_db.c Tue Jun 9 15:18:01 2009 (r193837) +++ stable/6/lib/libthread_db/libthr_db.c Tue Jun 9 15:20:36 2009 (r193838) @@ -458,6 +458,7 @@ pt_thr_get_info(const td_thrhandle_t *th const td_thragent_t *ta = th->th_ta; struct ptrace_lwpinfo linfo; int state; + int traceme; int ret; TDBG_FUNC(); @@ -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: stable/6/lib/libthread_db/thread_db.h ============================================================================== --- stable/6/lib/libthread_db/thread_db.h Tue Jun 9 15:18:01 2009 (r193837) +++ stable/6/lib/libthread_db/thread_db.h Tue Jun 9 15:20:36 2009 (r193838) @@ -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;