summaryrefslogtreecommitdiffstats
path: root/backends/sparc_corenote.c
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2015-12-08 19:10:42 +0100
committerMark Wielaard <mjw@redhat.com>2016-01-03 12:17:16 +0100
commita8a22a33a8c5886d6818bd8377f11dd8f38fdc2b (patch)
treea8b16193ad410e5404da7eaef1f58eb69c77ebed /backends/sparc_corenote.c
parent73be3d2d1a5dbdb6aa954b244524d21346af27d8 (diff)
downloadandroid_external_elfutils-a8a22a33a8c5886d6818bd8377f11dd8f38fdc2b.tar.gz
android_external_elfutils-a8a22a33a8c5886d6818bd8377f11dd8f38fdc2b.tar.bz2
android_external_elfutils-a8a22a33a8c5886d6818bd8377f11dd8f38fdc2b.zip
backends: sparc: support for core backtraces
This patch adds sparc support to the unwinder, providing a default CFI program that works in both sparcv9-*-* and sparc64-*-* targets. Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'backends/sparc_corenote.c')
-rw-r--r--backends/sparc_corenote.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/sparc_corenote.c b/backends/sparc_corenote.c
index 7912539b..c9b6ff3d 100644
--- a/backends/sparc_corenote.c
+++ b/backends/sparc_corenote.c
@@ -1,5 +1,6 @@
-/* PowerPC specific core note handling.
+/* SPARC specific core note handling.
Copyright (C) 2007 Red Hat, Inc.
+ Copyright (C) 2015 Oracle, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
@@ -109,4 +110,11 @@ static const Ebl_Register_Location fpregset_regs[] =
#define ALIGN_PID_T 4
#define TYPE_PID_T ELF_T_SWORD
+#define PRSTATUS_REGSET_ITEMS \
+ { \
+ .name = "pc", .type = ELF_T_ADDR, .format = 'x', \
+ .offset = offsetof (struct EBLHOOK(prstatus), pr_reg[33]), \
+ .group = "register", .pc_register = true \
+ }
+
#include "linux-core-note.c"