Merge pull request #963 from kr-sc/kr-sc/no-free-triggers
When an attempt to set watchpoint fails because there is no free triggers OpenOCD reports "unknown error"
This commit is contained in:
commit
af786c0eca
|
@ -1076,7 +1076,7 @@ static int maybe_add_trigger_t2_t6_for_wp(struct target *target,
|
||||||
};
|
};
|
||||||
ret = try_setup_single_match_trigger(target, trigger, eq);
|
ret = try_setup_single_match_trigger(target, trigger, eq);
|
||||||
if (ret != ERROR_OK)
|
if (ret != ERROR_OK)
|
||||||
return ERROR_FAIL;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == ERROR_OK && trigger->length > 1) {
|
if (ret == ERROR_OK && trigger->length > 1) {
|
||||||
|
|
Loading…
Reference in New Issue