diff options
| author | Patrick Walton <[email protected]> | 2010-10-11 16:40:18 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-10-11 16:40:18 -0700 |
| commit | 94cec74096280509083798bfcbd1be169fd43562 (patch) | |
| tree | e10dbce1e72079b4ebddf5a9ad58a92776e92715 /src/rt/rust_task.h | |
| parent | Bind labels explicitly in fe/cexp.ml. Should fix issue #169. (diff) | |
| download | rust-94cec74096280509083798bfcbd1be169fd43562.tar.xz rust-94cec74096280509083798bfcbd1be169fd43562.zip | |
Try to print backtraces on failure
Diffstat (limited to 'src/rt/rust_task.h')
| -rw-r--r-- | src/rt/rust_task.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<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); |