Skip to content

Commit

Permalink
target: Added some documentation on how the `TARGET_HALT_{BREAK,WATCH…
Browse files Browse the repository at this point in the history
…}POINT` values are used
  • Loading branch information
dragonmux authored and esden committed Oct 29, 2023
1 parent 95f6612 commit 1f21e3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/include/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f21e3c

Please sign in to comment.