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:
parent
a8f45d36a8
commit
bfddd9af64
|
@ -1129,9 +1129,7 @@ int riscv_openocd_halt(struct target *target)
|
||||||
LOG_DEBUG("halt requested, but no known RTOS hartid");
|
LOG_DEBUG("halt requested, but no known RTOS hartid");
|
||||||
}
|
}
|
||||||
|
|
||||||
target->state = TARGET_HALTED;
|
|
||||||
target->debug_reason = DBG_REASON_DBGRQ;
|
target->debug_reason = DBG_REASON_DBGRQ;
|
||||||
target_call_event_callbacks(target, TARGET_EVENT_HALTED);
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1192,8 +1190,6 @@ int riscv_openocd_resume(
|
||||||
}
|
}
|
||||||
|
|
||||||
register_cache_invalidate(target->reg_cache);
|
register_cache_invalidate(target->reg_cache);
|
||||||
target->state = TARGET_RUNNING;
|
|
||||||
target_call_event_callbacks(target, TARGET_EVENT_RESUMED);
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue