[PATCH 10/17] arm: user_regset: VFP in core dumps

From: Roland McGrath
Date: Fri Apr 24 2009 - 20:12:36 EST


This enables dumping the VFP state in ELF core dumps.
It gets its own note.

I reused the NT_PRXFPREG type code already used for extended-FP
state on x86, because it seems to fit logically. It would be just
as easy to define a new code called NT_ARM_VFP in linux/elf.h if
that is preferable.

Signed-off-by: Roland McGrath <roland@xxxxxxxxxx>
---
arch/arm/kernel/ptrace.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index 7f3c121..5fb5ac1 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -805,6 +805,7 @@ static const struct user_regset arm_regsets[] = {
},
#ifdef CONFIG_VFP
[REGSET_VFP] = {
+ .core_note_type = NT_PRXFPREG,
.n = sizeof(struct user_vfp) / sizeof(long),
.size = sizeof(long), .align = sizeof(long),
.get = vfp_get, .set = vfp_set
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/