aboutsummaryrefslogtreecommitdiff
path: root/src/target/target_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/target_type.h')
-rw-r--r--src/target/target_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/target_type.h b/src/target/target_type.h
index 4d9a33f9..0b8d5daa 100644
--- a/src/target/target_type.h
+++ b/src/target/target_type.h
@@ -174,6 +174,11 @@ struct target_type {
*/
int (*remove_watchpoint)(struct target *target, struct watchpoint *watchpoint);
+ /* Find out just hit watchpoint. After the target hits a watchpoint, the
+ * information could assist gdb to locate where the modified/accessed memory is.
+ */
+ int (*hit_watchpoint)(struct target *target, struct watchpoint **hit_watchpoint);
+
/**
* Target algorithm support. Do @b not call this method directly,
* use target_run_algorithm() instead.