Don't make callbacks from riscv_openocd_{halt,resume}

I'm not sure why this would be an issue, but it looks like for some
reason this is causing extraneous halt messages in Eclipse.
This commit is contained in:
Palmer Dabbelt 2018-05-29 23:34:56 -07:00
parent a8f45d36a8
commit bfddd9af64
1 changed files with 0 additions and 4 deletions

View File

@ -1129,9 +1129,7 @@ int riscv_openocd_halt(struct target *target)
LOG_DEBUG("halt requested, but no known RTOS hartid");
}
target->state = TARGET_HALTED;
target->debug_reason = DBG_REASON_DBGRQ;
target_call_event_callbacks(target, TARGET_EVENT_HALTED);
return out;
}
@ -1192,8 +1190,6 @@ int riscv_openocd_resume(
}
register_cache_invalidate(target->reg_cache);
target->state = TARGET_RUNNING;
target_call_event_callbacks(target, TARGET_EVENT_RESUMED);
return out;
}