From a3ff02f1266795691d6cb97dc0de886c613b39ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 3 May 2011 10:19:28 -0400 Subject: Split start into rustc and rustboot versions. This introduces a bit of duplication, but we will hopefully drop the rustboot one soon. This is also a preparation for changing the rustc one to have the activate glue return to the exit glue which will then call the main function. This (returning to the function that calls main) matches what happens when loader stats a program or a new thread. It lets gdb produce good backtraces and should help with EH too. --- src/rt/rust_task.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/rt/rust_task.h') diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 7d4ed221..9169a0b3 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -60,6 +60,14 @@ rust_task : public maybe_proxy, uintptr_t spawnee_fn, uintptr_t args, size_t callsz); + void start_rustboot(uintptr_t exit_task_glue, + uintptr_t spawnee_fn, + uintptr_t args, + size_t callsz); + void start_rustc(uintptr_t exit_task_glue, + uintptr_t spawnee_fn, + uintptr_t args, + size_t callsz); void grow(size_t n_frame_bytes); bool running(); bool blocked(); -- cgit v1.2.3