diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-04-11 13:08:06 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-04-11 13:08:06 +0200 |
commit | a6f6008cf0034b8580f67851f742dd0ada0d683c (patch) | |
tree | fafa7a672e199174e373df7de026662f0d3c7585 /runtime/runtime.h | |
parent | 6d6dbe278ad5fab5d33273b38c1ad137380a3e1e (diff) | |
download | systemtap-steved-a6f6008cf0034b8580f67851f742dd0ada0d683c.tar.gz systemtap-steved-a6f6008cf0034b8580f67851f742dd0ada0d683c.tar.xz systemtap-steved-a6f6008cf0034b8580f67851f742dd0ada0d683c.zip |
Prefer dwarf unwinder on i386 and x86_64.
* runtime/runtime.h: Move up and enable check for STP_USE_DWARF_UNWINDER.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 0a656b78..f333756e 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -66,6 +66,11 @@ static struct #define MAXTRACE 20 #endif +/* dwarf unwinder only tested so far on i386 and x86_64. */ +#if (defined(__i386__) || defined(__x86_64__)) +#define STP_USE_DWARF_UNWINDER +#endif + #ifdef CONFIG_FRAME_POINTER /* Just because frame pointers are available does not mean we can trust them. */ #ifndef STP_USE_DWARF_UNWINDER @@ -73,13 +78,6 @@ static struct #endif #endif -/* dwarf unwinder only tested so far on i386 and x86_64, - but globally disabled for now */ -#if 0 -// !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" |