Review Board 2.0.15


sim: Add support for generating back traces on errors

Review Request #3221 - Created Nov. 15, 2015 and submitted - Latest diff uploaded

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 11212:9726e0e72bef
---------------------------
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.

Tested on both MacOS and Linux by provoking aborts and segmentation faults. Compiled with both clang and GCC.