diff options
author | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-15 21:32:59 -0400 |
---|---|---|
committer | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-15 21:32:59 -0400 |
commit | 7edb09d8ba7689d26aefc0a273f334cec4419539 (patch) | |
tree | ef40e55d0be98abe137c6d174b5bdb8c40bb022c /runtime/unwind | |
parent | bd10b81c06a0102ac10617da2f368fcc168fc15e (diff) | |
parent | 8a49d1d23c77033bf98fc7b139b37f83e3e0eb49 (diff) | |
download | systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.tar.gz systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.tar.xz systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.zip |
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/unwind')
-rw-r--r-- | runtime/unwind/i386.h | 18 | ||||
-rw-r--r-- | runtime/unwind/unwind.h | 4 |
2 files changed, 4 insertions, 18 deletions
diff --git a/runtime/unwind/i386.h b/runtime/unwind/i386.h index 1f69b4a9..79e6ba73 100644 --- a/runtime/unwind/i386.h +++ b/runtime/unwind/i386.h @@ -34,15 +34,6 @@ struct unwind_frame_info #define UNW_PC(frame) (frame)->regs.ip #define UNW_SP(frame) (frame)->regs.sp -#ifdef STP_USE_FRAME_POINTER -#define UNW_FP(frame) (frame)->regs.bp -#define FRAME_RETADDR_OFFSET 4 -#define FRAME_LINK_OFFSET 0 -#define STACK_BOTTOM(tsk) STACK_LIMIT((tsk)->thread.sp0) -#define STACK_TOP(tsk) ((tsk)->thread.sp0) -#else -#define UNW_FP(frame) ((void)(frame), 0) -#endif #define UNW_REGISTER_INFO \ PTREGS_INFO(ax), \ @@ -59,15 +50,6 @@ struct unwind_frame_info #define UNW_PC(frame) (frame)->regs.eip #define UNW_SP(frame) (frame)->regs.esp -#ifdef STP_USE_FRAME_POINTER -#define UNW_FP(frame) (frame)->regs.ebp -#define FRAME_RETADDR_OFFSET 4 -#define FRAME_LINK_OFFSET 0 -#define STACK_BOTTOM(tsk) STACK_LIMIT((tsk)->thread.esp0) -#define STACK_TOP(tsk) ((tsk)->thread.esp0) -#else -#define UNW_FP(frame) ((void)(frame), 0) -#endif #define UNW_REGISTER_INFO \ PTREGS_INFO(eax), \ diff --git a/runtime/unwind/unwind.h b/runtime/unwind/unwind.h index 8651cb9e..ae5e75d3 100644 --- a/runtime/unwind/unwind.h +++ b/runtime/unwind/unwind.h @@ -13,6 +13,8 @@ #ifndef _STP_UNWIND_H_ #define _STP_UNWIND_H_ +#ifdef STP_USE_DWARF_UNWINDER + #if defined (__x86_64__) #include "x86_64.h" #elif defined (__i386__) @@ -139,4 +141,6 @@ static const u32 bad_cie, not_fde; static const u32 *cie_for_fde(const u32 *fde, const struct _stp_module *); static signed fde_pointer_type(const u32 *cie); + +#endif /* STP_USE_DWARF_UNWINDER */ #endif /*_STP_UNWIND_H_*/ |