From 1f21e3c60fcb5b747ee3fe0910b36ba57cb2c659 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Mon, 9 Oct 2023 14:40:18 +0100 Subject: [PATCH] target: Added some documentation on how the `TARGET_HALT_{BREAK,WATCH}POINT` values are used --- src/include/target.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/target.h b/src/include/target.h index 33303c399c2..b8052147f91 100644 --- a/src/include/target.h +++ b/src/include/target.h @@ -78,7 +78,12 @@ typedef enum target_halt_reason { TARGET_HALT_ERROR, /* Failed to read target status */ TARGET_HALT_REQUEST, TARGET_HALT_STEPPING, + /* + * Used to both indicate that the target hit a breakpoint, and to + * indicate that the target hit a watchpoint but we can't figure out which + */ TARGET_HALT_BREAKPOINT, + /* Used to indicate the target hit a watchpoint and we know which */ TARGET_HALT_WATCHPOINT, TARGET_HALT_FAULT, } target_halt_reason_e;