sim: Add support for generating back traces on errors
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 4 Dec 2015 00:12:58 +0000 (00:12 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 4 Dec 2015 00:12:58 +0000 (00:12 +0000)
commitdaa53da594d04925d10e792df804110d6a7bf2a2
treef60a1b5722256718fea2fe93fb70e45b28022268
parenta1aeff27ce2978bb5fd0a3da66878d914cfb4da2
sim: Add support for generating back traces on errors

Add functionality to generate a back trace if gem5 crashes (SIGABRT or
SIGSEGV). The current implementation uses glibc's stack traversal
support if available and stubs out the call to print_backtrace()
otherwise.
SConstruct
src/base/atomicio.hh
src/sim/SConscript
src/sim/backtrace.hh [new file with mode: 0644]
src/sim/backtrace_glibc.cc [new file with mode: 0644]
src/sim/backtrace_none.cc [new file with mode: 0644]
src/sim/init_signals.cc