History

Added vm_id to vm_module_t that is used by the VM to uniquely identify a module Updated tool dispatcher to pass on the loaded_vm_module_t type as the module_vm_load event argument Debugger now uses symbol data to resolve stack IPs

arr committed 9 years ago

Commit 72f24ec1 parent a3c184b10 files · +160 −35Browse files

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

Unified · Split

src/vm/tool_dispatch.cpp+2−5
@@ -126,13 +126,10 @@ void vm_tool_dispatch_t::on_exception_unhandled(vm_registers_t &r, const vm_stri · 125 unmodified lines
126126 _events.fire_event_callbacks(vm_event_t::exception_unhandled, cxt);
127127 }
128128
129−void vm_tool_dispatch_t::on_module_vm_load(std::shared_ptr<vm_module_t> &m, const vm_string_t &path)
129+void vm_tool_dispatch_t::on_module_vm_load(const loaded_vm_module_t &m)
130130 {
131− assert(m != nullptr);
132−
133131 vm_event_context_t cxt{};
134− cxt.value1.module = &m;
135− cxt.value2.str = &path;
132+ cxt.value1.loaded_mod = &m;
136133
137134 _events.fire_event_callbacks(vm_event_t::module_vm_load, cxt);
138135 }