summaryrefslogtreecommitdiff
path: root/src/sim/SConscript
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-12-04 00:12:58 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-12-04 00:12:58 +0000
commitdaa53da594d04925d10e792df804110d6a7bf2a2 (patch)
treef60a1b5722256718fea2fe93fb70e45b28022268 /src/sim/SConscript
parenta1aeff27ce2978bb5fd0a3da66878d914cfb4da2 (diff)
downloadgem5-daa53da594d04925d10e792df804110d6a7bf2a2.tar.xz
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.
Diffstat (limited to 'src/sim/SConscript')
-rw-r--r--src/sim/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sim/SConscript b/src/sim/SConscript
index 204bfca3b..93fc30fbc 100644
--- a/src/sim/SConscript
+++ b/src/sim/SConscript
@@ -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')