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/vm/stack.cpp (1 of 5 files). Show all

Unified · Split

src/vm/stack.cpp+0−21
@@ -295,24 +295,3 @@ vm_frame_t *vm_stack_t::peek_frame() const · 294 unmodified lines
295295 auto layout = dynamic_cast<vm_stack_layout *>(_mem.get());
296296 return layout->top_frame;
297297 }
298−
299−void vm_stack_t::walk_stack(vm_stack_walk_callback_t callback) const
300−{
301− if (callback == nullptr)
302− return;
303−
304− auto layout = dynamic_cast<vm_stack_layout *>(_mem.get());
305− auto current_page = layout->top_page;
306− auto current_frame = layout->top_frame;
307−
308− while (current_page != nullptr && current_frame != nullptr)
309− {
310− if (!callback(current_frame, current_page))
311− break;
312−
313− current_frame = current_frame->prev_frame();
314−
315− if (!current_page->contains_frame(current_frame))
316− current_page = current_page->prev_page;
317− }
318−}