Skip to content

Commit 31ff9ca

Browse files
committed
target: Added some documentation on how the TARGET_HALT_{BREAK,WATCH}POINT values are used
1 parent f6169c5 commit 31ff9ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/include/target.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ typedef enum target_halt_reason {
7878
TARGET_HALT_ERROR, /* Failed to read target status */
7979
TARGET_HALT_REQUEST,
8080
TARGET_HALT_STEPPING,
81+
/*
82+
* Used to both indicate that the target hit a breakpoint, and to
83+
* indicate that the target hit a watchpoint but we can't figure out which
84+
*/
8185
TARGET_HALT_BREAKPOINT,
86+
/* Used to indicate the target hit a watchpoint and we know which */
8287
TARGET_HALT_WATCHPOINT,
8388
TARGET_HALT_FAULT,
8489
} target_halt_reason_e;

0 commit comments

Comments
 (0)