Added a convenience function to dump backtraces for gdb-less debugging