diff options
author | Peter Collingbourne <pcc@google.com> | 2023-10-19 19:07:29 -0700 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-11-11 18:43:43 +0000 |
commit | 42441fd96cf86ffca61f77afe24aae21fb00bb89 (patch) | |
tree | ed4b25c4bfa233f42b166c058c819fb7b63a7e36 /doc/openocd.texi | |
parent | a9080087d82688043ca216d50926228d09631297 (diff) | |
download | riscv-openocd-42441fd96cf86ffca61f77afe24aae21fb00bb89.zip riscv-openocd-42441fd96cf86ffca61f77afe24aae21fb00bb89.tar.gz riscv-openocd-42441fd96cf86ffca61f77afe24aae21fb00bb89.tar.bz2 |
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
Diffstat (limited to 'doc/openocd.texi')
-rw-r--r-- | doc/openocd.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index a296518..45c2e4d 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -5296,6 +5296,18 @@ Displays the current target state: (Also, @pxref{eventpolling,,Event Polling}.) @end deffn +@deffn {Command} {$target_name debug_reason} +Displays the current debug reason: +@code{debug-request}, +@code{breakpoint}, +@code{watchpoint}, +@code{watchpoint-and-breakpoint}, +@code{single-step}, +@code{target-not-halted}, +@code{program-exit}, +@code{exception-catch} or @code{undefined}. +@end deffn + @deffn {Command} {$target_name eventlist} Displays a table listing all event handlers currently associated with this target. |