#443: Output a stack backtrace on a fatal error in a simulation --------------------------+------------------------------------------------- Reporter: hinder | Owner: eschnett Type: enhancement | Status: review Priority: major | Milestone: Component: Carpet | Version: Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by hinder):
Try adding -rdynamic to LDFLAGS:
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
This was necessary for me to get this to work. The patch uses undocumented GLibC hacks, so we should test it on several exotic architectures before applying - it might need to be disabled if certain features are not available. There is no platform-independent or supported way of doing this, according to Justin's comments.
We could consider adding -rdynamic by default to LDFLAGS in the flesh, though I don't know what the consequences of this would be.