History

Debugger disassemble defaults to 4 instructions. Disasembler in debugger now replaces breakpoint opcode with real if it was replaced. Fix bug when setting breakpoint at same location twice.

arr committed 10 years ago

Commit f29cf0d1 parent 754ca824 files · +38 −6Browse files

Showing the changes to src/include (2 of 4 files). Show all

Unified · Split

2 files
  1. src/include/opcodes.h +3 −1
  2. src/include/vm_tools.h +1 −0
src/include/opcodes.h+3−1
@@ -7,10 +7,12 @@ · 6 unmodified lines
7#ifndef _DISVM_SRC_INCLUDE_OPCODES_H_7#ifndef _DISVM_SRC_INCLUDE_OPCODES_H_
8#define _DISVM_SRC_INCLUDE_OPCODES_H_8#define _DISVM_SRC_INCLUDE_OPCODES_H_
9 9
10#include <cstdint>
11
10namespace disvm12namespace disvm
11{13{
12 // Instruction codes for the Dis VM14 // Instruction codes for the Dis VM
13 enum class opcode_t15 enum class opcode_t : uint8_t
14 {16 {
15 invalid = 0,17 invalid = 0,
16 alt,18 alt,
src/include/vm_tools.h+1−0
@@ -69,6 +69,7 @@ namespace disvm · 68 unmodified lines
69 {69 {
70 std::shared_ptr<vm_module_t> module;70 std::shared_ptr<vm_module_t> module;
71 vm_pc_t pc;71 vm_pc_t pc;
72 opcode_t original_opcode;
72 };73 };
73 74
74 // VM tool controller75 // VM tool controller