History

Name the entry module in the exec program. Re-write stack walking function for debugger. System exceptions now print out call stack.

arr committed 10 years ago

Commit 794ecfc1 parent 4f6417b5 files · +54 −35Browse files

Showing the changes to src/exec/main.cpp (1 of 5 files). Show all

Unified · Split

src/exec/main.cpp+3−0
@@ -73,6 +73,9 @@ namespace · 72 unmodified lines
73 e.header.entry_type = 0;73 e.header.entry_type = 0;
74 e.header.runtime_flag = (runtime_flags_t::has_import);74 e.header.runtime_flag = (runtime_flags_t::has_import);
75 75
76 std::array<uint8_t, 8> mod_name = { "_entry_" };
77 e.module_name = std::make_unique<vm_string_t>(mod_name.size() - 1, mod_name.data());
78
76 // Inherit the stack extent from the command module and add the entry frame size.79 // Inherit the stack extent from the command module and add the entry frame size.
77 e.header.stack_extent = command_module->header.stack_extent + sizeof(vm_entry_frame_t);80 e.header.stack_extent = command_module->header.stack_extent + sizeof(vm_entry_frame_t);
78 81