summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-08-17 14:42:40 +0000
committerandrew <andrew@FreeBSD.org>2013-08-17 14:42:40 +0000
commit7bf16ad3f2ff9d6091cd2f49bf7bd116cc3aa108 (patch)
treec5f5a5841af9d1e32ca7b338c14988a7d4341666 /lib/libthread_db
parent42756943488e84826b46c8d6a277d40b495c3b74 (diff)
downloadFreeBSD-src-7bf16ad3f2ff9d6091cd2f49bf7bd116cc3aa108.zip
FreeBSD-src-7bf16ad3f2ff9d6091cd2f49bf7bd116cc3aa108.tar.gz
Ensure we set all fpu registers to zero by using the address and size of
the union over one of its members.
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/arch/arm/libpthread_md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthread_db/arch/arm/libpthread_md.c b/lib/libthread_db/arch/arm/libpthread_md.c
index 6e4b2bd..a72df2e 100644
--- a/lib/libthread_db/arch/arm/libpthread_md.c
+++ b/lib/libthread_db/arch/arm/libpthread_md.c
@@ -90,7 +90,7 @@ pt_fpreg_to_ucontext(const struct fpreg *r __unused, ucontext_t *uc)
mcontext_t *mc = &uc->uc_mcontext;
/* XXX */
- memset(&mc->__fpu.__fpregs, 0, sizeof(__fpregset_t));
+ memset(&mc->__fpu, 0, sizeof(mc->__fpu));
}
void
OpenPOWER on IntegriCloud