diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-05-03 10:19:28 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-05-03 10:24:18 -0400 |
| commit | a3ff02f1266795691d6cb97dc0de886c613b39ed (patch) | |
| tree | f93a945a8b15446c9ff3a5d2f7e26ebe1c2fa5f9 /src/rt/rust_task.h | |
| parent | More snapshot logic refactoring. (diff) | |
| download | rust-a3ff02f1266795691d6cb97dc0de886c613b39ed.tar.xz rust-a3ff02f1266795691d6cb97dc0de886c613b39ed.zip | |
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.
Diffstat (limited to 'src/rt/rust_task.h')
| -rw-r--r-- | src/rt/rust_task.h | 8 |
1 files changed, 8 insertions, 0 deletions
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<rust_task>, 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(); |