File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Debugger::Debugger(Channel *duplex) {
26
26
this ->checkpointInterval = 10 ;
27
27
this ->instructions_executed = 0 ;
28
28
this ->remaining_instructions = -1 ;
29
- this ->prev_pc_ptr = nullptr ;
30
29
this ->fidx_called = {};
31
30
}
32
31
@@ -961,12 +960,11 @@ void Debugger::handleSnapshotPolicy(Module *m) {
961
960
checkpoint (m);
962
961
}
963
962
instructions_executed++;
964
- prev_pc_ptr = m->pc_ptr ;
965
963
966
964
// Store arguments of last primitive call.
967
965
if ((fidx_called = isPrimitiveBeingCalled (m, m->pc_ptr ))) {
968
966
const Type *type = m->functions [*fidx_called].type ;
969
- for (int32_t i = 0 ; i < type->param_count ; i++) {
967
+ for (uint32_t i = 0 ; i < type->param_count ; i++) {
970
968
prim_args[type->param_count - i - 1 ] = m->stack [m->sp - i].value .uint32 ;
971
969
}
972
970
}
Original file line number Diff line number Diff line change @@ -127,9 +127,11 @@ class Debugger {
127
127
bool connected_to_proxy = false ;
128
128
warduino::mutex *supervisor_mutex;
129
129
130
+ // Mocking
130
131
std::unordered_map<uint32_t , std::unordered_map<uint32_t , uint32_t >>
131
132
overrides;
132
133
134
+ // Checkpointing
133
135
SnapshotPolicy snapshotPolicy;
134
136
uint32_t checkpointInterval;
135
137
uint32_t instructions_executed;
You can’t perform that action at this time.
0 commit comments