From 30734a9a7ba8e58bf4bd4196f8abd1fd40241732 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Mon, 9 Aug 2010 07:52:07 -0700 Subject: Some pretty printing in the runtime. --- src/rt/rust_task.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 9f4fa611a95..63724bbbcd3 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -333,6 +333,7 @@ rust_task::kill() { if (this == dom->root_task) dom->fail(); + log(rust_log::TASK, "preparing to unwind task: 0x%" PRIxPTR, this); run_on_resume(dom->root_crate->get_unwind_glue()); } @@ -515,6 +516,10 @@ rust_task::free(void *p, bool is_gc) } } +const char * +rust_task::state_str() { + return dom->state_vec_name(state); +} void rust_task::transition(ptr_vec *src, ptr_vec *dst) -- cgit 1.4.1-3-g733a5