diff options
author | Björn Gustavsson <[email protected]> | 2011-03-10 16:53:50 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-08-16 15:22:28 +0200 |
commit | 962c9a185eb4897d38b37170f20695608ca9a21b (patch) | |
tree | 17ccf956e95d77066322d0002e954cc50e916302 /erts/emulator/beam/global.h | |
parent | 053fb064496043207cfa807c900077f9bbc4c7d1 (diff) | |
download | otp-962c9a185eb4897d38b37170f20695608ca9a21b.tar.gz otp-962c9a185eb4897d38b37170f20695608ca9a21b.tar.bz2 otp-962c9a185eb4897d38b37170f20695608ca9a21b.zip |
beam_emu: Factor out saving of stack trace from save_stacktrace()
Put the actual saving of the continuation pointers on the stack
in the new function erts_save_stacktrace() so that it can be reused.
The code is too tricky and complicated to allow it to
become duplicated.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r-- | erts/emulator/beam/global.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h index 5b36f13149..5588257eae 100644 --- a/erts/emulator/beam/global.h +++ b/erts/emulator/beam/global.h @@ -37,6 +37,7 @@ #include "erl_process.h" #include "erl_sys_driver.h" #include "erl_debug.h" +#include "error.h" typedef struct port Port; #include "erl_port_task.h" @@ -1064,6 +1065,7 @@ void init_emulator(void); void process_main(void); Eterm build_stacktrace(Process* c_p, Eterm exc); Eterm expand_error_value(Process* c_p, Uint freason, Eterm Value); +void erts_save_stacktrace(Process* p, struct StackTrace* s, int depth); /* erl_init.c */ |