From aaf2af3e3b0c159a64609c82811662d7253c3a96 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 25 Mar 2008 11:32:58 -0400 Subject: rebased unwind_branch on top of current master --- runtime/runtime.h | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index 318d3038..b9a9c778 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -76,7 +76,6 @@ static struct #include "io.c" #include "arith.c" #include "copy.c" -#include "sym.h" #include "sym.c" #ifdef STP_PERFMON #include "perf.c" -- cgit From 20d2c2c26b42b27a4881a46364a33330b2a6ea31 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Sun, 30 Mar 2008 19:47:51 -0400 Subject: Support for kernels built with CONFIG_FRAME_POINTER --- runtime/runtime.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index b9a9c778..6d8d9dc9 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -70,6 +70,13 @@ static struct #define MAXSTRINGLEN 128 #endif +#ifdef CONFIG_FRAME_POINTER +/* Just because frame pointers are available does not mean we can trust them. */ +#if defined (__i386__) || defined (__arm__) +#define STP_USE_FRAME_POINTER +#endif +#endif + #include "alloc.c" #include "print.c" #include "string.c" -- cgit From b45613ad2a9740217ad3050adc6fcd038286ce88 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Mon, 31 Mar 2008 11:05:13 -0400 Subject: Add new define STP_USE_DWARF_UNWINDER which is set based on which archs work with the unwinder. --- runtime/runtime.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index 6d8d9dc9..8d267173 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -77,6 +77,11 @@ static struct #endif #endif +/* dwarf unwinder only tested so far on i386 and x86_64 */ +#if !defined(STP_USE_FRAME_BUFFER) && (defined(__i386__) || defined(__x86_64__)) +#define STP_USE_DWARF_UNWINDER +#endif + #include "alloc.c" #include "print.c" #include "string.c" -- cgit