From owner-svn-src-stable-8@FreeBSD.ORG Sat Aug 13 12:49:01 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32CF9106566B; Sat, 13 Aug 2011 12:49:01 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 214E68FC16; Sat, 13 Aug 2011 12:49:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7DCn1ui016529; Sat, 13 Aug 2011 12:49:01 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7DCn1O5016527; Sat, 13 Aug 2011 12:49:01 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201108131249.p7DCn1O5016527@svn.freebsd.org> From: Marius Strobl Date: Sat, 13 Aug 2011 12:49:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224826 - stable/8/lib/libthread_db/arch/amd64 X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 12:49:01 -0000 Author: marius Date: Sat Aug 13 12:49:00 2011 New Revision: 224826 URL: http://svn.freebsd.org/changeset/base/224826 Log: MFC: r224684 Use the size of struct fpreg rather than of the pointer to it when copying the FPU state. Reviewed by: marcel Modified: stable/8/lib/libthread_db/arch/amd64/libpthread_md.c Directory Properties: stable/8/lib/libthread_db/ (props changed) Modified: stable/8/lib/libthread_db/arch/amd64/libpthread_md.c ============================================================================== --- stable/8/lib/libthread_db/arch/amd64/libpthread_md.c Sat Aug 13 12:47:10 2011 (r224825) +++ stable/8/lib/libthread_db/arch/amd64/libpthread_md.c Sat Aug 13 12:49:00 2011 (r224826) @@ -92,18 +92,21 @@ pt_ucontext_to_reg(const ucontext_t *uc, void pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) { - memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(r)); + + memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(*r)); } void pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) { - memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(r)); + + memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(*r)); } void pt_md_init(void) { + /* Nothing to do */ }