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