do not use struct function pointers elsewhere, use them only in case

when polymorphysm needed
This commit is contained in:
2020-02-03 15:04:09 +04:00
parent b79db14d0c
commit 810ce7519d
15 changed files with 609 additions and 749 deletions
+3 -3
View File
@@ -65,13 +65,13 @@ void FatalSignalHandler(int sig, siginfo_t* info, void* context)
if((context != 0) && (sig == SIGSEGV || sig == SIGABRT || sig == SIGBUS || sig == SIGFPE))
{
ret = handler.unwind(&handler);
ret = pst_handler_unwind(&handler);
}
if(ret) {
pst_log(SEVERITY_INFO, "%s", handler.ctx.buff);
handler.handle_dwarf(&handler);
handler.print_dwarf(&handler);
pst_handler_handle_dwarf(&handler);
pst_handler_print_dwarf(&handler);
pst_log(SEVERITY_INFO, "%s", handler.ctx.buff);
} else {
pst_log(SEVERITY_ERROR, "No stack trace obtained");