target: Add a debug_reason command
commit42441fd96cf86ffca61f77afe24aae21fb00bb89
authorPeter Collingbourne <pcc@google.com>
Fri, 20 Oct 2023 02:07:29 +0000 (19 19:07 -0700)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 11 Nov 2023 18:43:43 +0000 (11 18:43 +0000)
treeed4b25c4bfa233f42b166c058c819fb7b63a7e36
parenta9080087d82688043ca216d50926228d09631297
target: Add a debug_reason command

This allows programmatically determining the debug reason.

Change-Id: I0c3e85cebb6dc28fc0fc212beca84a484ac654a5
Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7952
Reviewed-by: Jan Matyas <jan.matyas@codasip.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
doc/openocd.texi
src/target/target.c