aboutsummaryrefslogtreecommitdiff
path: root/git-hooks/commit-msg
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2025-02-17 12:15:09 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2025-03-01 15:15:41 +0000
commitd126cdb9239990dac88023d42fe5056401190e5e (patch)
tree141d9b98c23ca62c93a5a69c690a87dbc179085d /git-hooks/commit-msg
parentaccbeaed99bc6014d060259d6b0b0e080c0f44b4 (diff)
downloadriscv-openocd-d126cdb9239990dac88023d42fe5056401190e5e.zip
riscv-openocd-d126cdb9239990dac88023d42fe5056401190e5e.tar.gz
riscv-openocd-d126cdb9239990dac88023d42fe5056401190e5e.tar.bz2
drivers/cmsis_dap: fix misleading error selecting not compiled backend
If one of CMSIS-DAP backends was not compiled (due to missing library or configure --disable-cmsis-dap) and Tcl config explicitly selected it, a misleading message "invalid backend argument to cmsis-dap backend <backend>" was printed. Create dummy backends in struct cmsis_dap_backend to replace a not built backend. Check for NULL open backend method to distinguish the backend is dummy. Rework 'cmsis-dap backend' command to honour dummy backend. While on it print more helpful error messages. Change-Id: I8f12aeaaecf19302032870bc232e5135c1d935e7 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/8760 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions