riscv: fix remove_trigger return code for unavailable hw bp slot
This commit is contained in:
parent
f6ffede8b6
commit
9fe791ba4a
|
@ -927,7 +927,7 @@ static int remove_trigger(struct target *target, struct trigger *trigger)
|
||||||
if (i >= r->trigger_count) {
|
if (i >= r->trigger_count) {
|
||||||
LOG_ERROR("Couldn't find the hardware resources used by hardware "
|
LOG_ERROR("Couldn't find the hardware resources used by hardware "
|
||||||
"trigger.");
|
"trigger.");
|
||||||
return ERROR_FAIL;
|
return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
|
||||||
}
|
}
|
||||||
LOG_DEBUG("[%d] Stop using resource %d for bp %d", target->coreid, i,
|
LOG_DEBUG("[%d] Stop using resource %d for bp %d", target->coreid, i,
|
||||||
trigger->unique_id);
|
trigger->unique_id);
|
||||||
|
|
Loading…
Reference in New Issue