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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user