diff --git a/shared/context_struct.h b/shared/context_struct.h index 1946274..a5d4d8a 100644 --- a/shared/context_struct.h +++ b/shared/context_struct.h @@ -3,3 +3,5 @@ typedef struct { uintptr_t rip, rsp, rbp; } unwind_context_t; + +typedef unwind_context_t (*_fde_func_t)(unwind_context_t, uintptr_t); diff --git a/src/CodeGenerator.cpp b/src/CodeGenerator.cpp index 8c58a30..527334d 100644 --- a/src/CodeGenerator.cpp +++ b/src/CodeGenerator.cpp @@ -4,10 +4,8 @@ using namespace std; static const char* PRELUDE = -"#include \n" "#include \n" "\n" -"typedef unwind_context_t (*_fde_func_t)(unwind_context_t, uintptr_t);\n" ; CodeGenerator::CodeGenerator(