From 94cec74096280509083798bfcbd1be169fd43562 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 11 Oct 2010 16:40:18 -0700 Subject: Try to print backtraces on failure --- src/rt/rust_task.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rt/rust_task.h') diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 26ba872d..9fbc67ac 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -83,6 +83,9 @@ rust_task : public maybe_proxy, void log(uint32_t type_bits, char const *fmt, ...); + // Print a backtrace, if the "bt" logging option is on. + void backtrace(); + // Swap in some glue code to run when we have returned to the // task's context (assuming we're the active task). void run_after_return(size_t nargs, uintptr_t glue); -- cgit v1.2.3