1
0
Fork 0
forked from suyu/suyu
suyu/src/common/logging
yzct12345 81ed54d13e
logging: Display backtrace on crash
This implements backtraces so we don't have to tell users how to use gdb anymore.

This prints a backtrace after abort or segfault is detected. It also fixes the log getting cut off with the last line containing only a bracket. This change lets us know what caused a crash not just what happened the few seconds before it.

I only know how to add support for Linux with GCC. Also this doesn't work outside of C/C++ such as in dynarmic or certain parts of graphics drivers. The good thing is that it'll try and just crash again but the stack frames are still there so the core dump will work just like before.
2021-08-13 18:58:35 +00:00
..
backend.cpp logging: Display backtrace on crash 2021-08-13 18:58:35 +00:00
backend.h logging: Simplify and make thread-safe 2021-08-13 18:39:45 +00:00
filter.cpp shader: Add logging 2021-07-22 21:51:35 -04:00
filter.h common: logging: Restructure backend code 2021-06-13 11:05:58 -04:00
log.h common: logging: Restructure backend code 2021-06-13 11:05:58 -04:00
text_formatter.cpp common: logging: Restructure backend code 2021-06-13 11:05:58 -04:00
text_formatter.h common/log: Move Log namespace into the Common namespace 2021-04-14 23:10:58 -04:00
types.h shader: Add logging 2021-07-22 21:51:35 -04:00