Add some debugger memory utilities (#109)

* add some memory utilities

* run waitpid in a separate thread and support very simple breakpoints

* fix breakpoints

* add missing windows stub function

* fix error message on exit
This commit is contained in:
water111
2020-11-06 13:59:39 -05:00
committed by GitHub
parent f5ed2e6ad7
commit c09541fa98
20 changed files with 1430 additions and 57 deletions
@@ -17,6 +17,11 @@ Val* Compiler::compile_exit(const goos::Object& form, const goos::Object& rest,
(void)env;
auto args = get_va(form, rest);
va_check(form, args, {}, {});
if (m_debugger.is_attached()) {
m_debugger.detach();
}
if (m_listener.is_connected()) {
m_listener.send_reset(false);
}