Try to print backtraces on failure

This commit is contained in:
Patrick Walton
2010-10-11 16:40:18 -07:00
parent 99086292ac
commit 94cec74096
4 changed files with 46 additions and 17 deletions

View File

@@ -83,6 +83,9 @@ rust_task : public maybe_proxy<rust_task>,
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);