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:
Tim Newsome 2023-11-17 09:18:44 -08:00 committed by GitHub
commit af786c0eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
if (ret != ERROR_OK)
return ERROR_FAIL;
return ret;
}
if (ret == ERROR_OK && trigger->length > 1) {