add pst_handler_new()

This commit is contained in:
2020-02-05 12:12:02 +04:00
parent bfb9200d3a
commit d4e9307fe1
2 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -15,14 +15,14 @@
#include "common.h"
#include "context.h"
typedef struct pst_context pst_context;
typedef struct pst_handler {
pst_context ctx; // context of unwinding
list_head functions; // list of functions in stack frame
bool allocated; // whether this object was allocated or not
} pst_handler;
void pst_handler_init(pst_handler* h, ucontext_t* hctx);
pst_handler* pst_handler_new(ucontext_t* hctx);
void pst_handler_fini(pst_handler* h);
bool pst_handler_handle_dwarf(pst_handler* h);