This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/5] Add back end code for interpreting NT_ARM_VFP core note.


Signed-off-by: Petr Machata <pmachata@redhat.com>
---
 backends/ChangeLog      |    5 +++++
 backends/arm_corenote.c |   20 +++++++++++++++++++-
 2 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index 0445ce3..da25b3a 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,5 +1,10 @@
 2012-09-24  Petr Machata  <pmachata@redhat.com>
 
+	* arm_corenote.c (vfp_items, vfp_regs): New const variables.
+	(EXTRA_NOTES): Use it for NT_ARM_VFP.
+
+2012-09-24  Petr Machata  <pmachata@redhat.com>
+
 	* linux-core-note.c (EXTRA_REGSET_ITEMS): New macro.
 
 2012-09-17  Petr Machata  <pmachata@redhat.com>
diff --git a/backends/arm_corenote.c b/backends/arm_corenote.c
index 1bc98cc..d527944 100644
--- a/backends/arm_corenote.c
+++ b/backends/arm_corenote.c
@@ -1,5 +1,5 @@
 /* ARM specific core note handling.
-   Copyright (C) 2009 Red Hat, Inc.
+   Copyright (C) 2009, 2012 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
@@ -73,4 +73,22 @@ static const Ebl_Register_Location fpregset_regs[] =
 #define TYPE_UID_T		ELF_T_HALF
 #define TYPE_GID_T		ELF_T_HALF
 
+#define ARM_VFPREGS_SIZE ( 32 * 8 /*fpregs*/ + 4 /*fpscr*/ )
+static const Ebl_Register_Location vfp_regs[] =
+  {
+    { .offset = 0, .regno = 256, .count = 32, .bits = 64 }, /* fpregs */
+  };
+
+static const Ebl_Core_Item vfp_items[] =
+  {
+    {
+      .name = "fpscr", .group = "register",
+      .offset = 0,
+      .count = 0, .type = ELF_T_WORD, .format = 'x',
+    },
+  };
+
+#define	EXTRA_NOTES \
+  EXTRA_REGSET_ITEMS (NT_ARM_VFP, ARM_VFPREGS_SIZE, vfp_regs, vfp_items)
+
 #include "linux-core-note.c"
-- 
1.7.6.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]