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.
This commit is contained in:
Andreas Sandberg
2015-12-04 00:12:58 +00:00
parent a1aeff27ce
commit daa53da594
7 changed files with 286 additions and 19 deletions

View File

@@ -41,6 +41,7 @@ SimObject('SubSystem.py')
Source('arguments.cc')
Source('async.cc')
Source('backtrace_%s.cc' % env['BACKTRACE_IMPL'])
Source('core.cc')
Source('tags.cc')
Source('cxx_config.cc')