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
164 _events.fire_event_callbacks(vm_event_t::thread_end, cxt);164 _events.fire_event_callbacks(vm_event_t::thread_end, cxt);
165}165}
166 166
167void vm_tool_dispatch_t::on_thread_broken(vm_thread_t &)167void vm_tool_dispatch_t::on_thread_broken(vm_thread_t &t)
168{168{
169 vm_event_context_t cxt{};
170 cxt.value1.thread = &t;
171
172 _events.fire_event_callbacks(vm_event_t::thread_broken, cxt);
169}173}
170 174
171void vm_tool_dispatch_t::block_if_thread_suspended(uint32_t thread_id)175void vm_tool_dispatch_t::block_if_thread_suspended(uint32_t thread_id)