aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/control_flow.cpp
diff options
context:
space:
mode:
authoryzct12345 <87620833+yzct12345@users.noreply.github.com>2021-08-13 18:58:35 +0000
committerGitHub <noreply@github.com>2021-08-13 18:58:35 +0000
commit81ed54d13ecea920583c521373d2a6079fc67040 (patch)
tree47c9bbab0c757e24a488497e771cc00993cdc7ed /src/shader_recompiler/frontend/maxwell/control_flow.cpp
parent001675dced1b7b751d1db4f0d6490776c613df2f (diff)
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.
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/control_flow.cpp')
0 files changed, 0 insertions, 0 deletions