added print_registers() to context

This commit is contained in:
2020-01-24 14:43:43 +04:00
parent 59cf6fee85
commit f48bf41cbb
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ typedef struct __pst_context {
bool print(const char* fmt, ...);
void log(SC_LogSeverity severity, const char*fmt, ...);
uint32_t print_expr_block(Dwarf_Op *exprs, int len, char* buff, uint32_t buff_size, Dwarf_Attribute* attr = 0);
void print_registers(int from, int to);
ucontext_t* hcontext; // context of signal handler
unw_context_t context; // context of stack trace