Enumerate triggers when resuming from a trigger
Otherwise when we connect to a target that's already halted due to a trigger, we won't correctly step past it. Change-Id: I23b9482fa9597af826770f9cebf247b7ba59f65c
This commit is contained in:
parent
8c1fedb880
commit
4411d1f4c2
|
@ -1229,6 +1229,9 @@ static int resume_prep(struct target *target, int current,
|
|||
/* To be able to run off a trigger, disable all the triggers, step, and
|
||||
* then resume as usual. */
|
||||
LOG_DEBUG("deal with triggers");
|
||||
if (riscv_enumerate_triggers(target) != ERROR_OK)
|
||||
return ERROR_FAIL;
|
||||
|
||||
riscv_reg_t trigger_temporarily_cleared[RISCV_MAX_HWBPS] = {0};
|
||||
|
||||
int result = ERROR_OK;
|
||||
|
|
Loading…
Reference in New Issue