History

Change assert to exception if a dis module contains an invalid magic number. Broken threads now terminate the VM using the default scheduler. Tools can not get a callback for broken threads.

arr committed 10 years ago

Commit 096b0c71 parent 9c1abd69 files · +74 −28Browse files

Showing the changes to src/vm/tool_dispatch.cpp (1 of 9 files). Show all

Unified · Split

src/vm/tool_dispatch.cpp+5−1
@@ -164,8 +164,12 @@ void vm_tool_dispatch_t::on_thread_end(vm_thread_t &t) · 163 unmodified lines
164164 _events.fire_event_callbacks(vm_event_t::thread_end, cxt);
165165 }
166166
167−void vm_tool_dispatch_t::on_thread_broken(vm_thread_t &)
167+void vm_tool_dispatch_t::on_thread_broken(vm_thread_t &t)
168168 {
169+ vm_event_context_t cxt{};
170+ cxt.value1.thread = &t;
171+
172+ _events.fire_event_callbacks(vm_event_t::thread_broken, cxt);
169173 }
170174
171175 void vm_tool_dispatch_t::block_if_thread_suspended(uint32_t thread_id)