From 7bf16ad3f2ff9d6091cd2f49bf7bd116cc3aa108 Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 17 Aug 2013 14:42:40 +0000 Subject: Ensure we set all fpu registers to zero by using the address and size of the union over one of its members. --- lib/libthread_db/arch/arm/libpthread_md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libthread_db/arch') 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 -- cgit v1.1