Showing the changes to src/vm/tool_dispatch.cpp (1 of 4 files). Show all
Unified · Split
| @@ -251,7 +251,7 @@ cookie_t vm_tool_dispatch_t::set_breakpoint(std::shared_ptr<vm_module_t> module, · 250 unmodified lines | |||
| 251 | const auto cookie_id = _breakpoints.cookie_counter++; | 251 | const auto cookie_id = _breakpoints.cookie_counter++; |
| 252 | 252 | ||
| 253 | // Map the cookie to the module/pc pair. | 253 | // Map the cookie to the module/pc pair. |
| 254 | _breakpoints.cookie_to_details[cookie_id] = { module, pc }; | 254 | _breakpoints.cookie_to_details[cookie_id] = { module, pc, real_opcode }; |
| 255 | 255 | ||
| 256 | // Record the original opcode | 256 | // Record the original opcode |
| 257 | auto &pc_map = _breakpoints.original_opcodes[reinterpret_cast<std::uintptr_t>(module.get())]; | 257 | auto &pc_map = _breakpoints.original_opcodes[reinterpret_cast<std::uintptr_t>(module.get())]; |