When an attempt to set watchpoint fails because there is no free triggers OpenOCD reports "unknown error"

Now it returns `resource not available`

Change-Id: Ifbbd468bdf62023850690eb96fe8a16f4114e915
Signed-off-by: Kirill Radkin <kirill.radkin@syntacore.com>
This commit is contained in:
Kirill Radkin 2023-11-14 15:31:35 +03:00
parent 6de536bbb8
commit fee2e04d90
1 changed files with 1 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ static int maybe_add_trigger_t2_t6_for_wp(struct target *target,
};
ret = try_setup_single_match_trigger(target, trigger, eq);
if (ret != ERROR_OK)
return ERROR_FAIL;
return ret;
}
if (ret == ERROR_OK && trigger->length > 1) {