X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget.h;h=09895bbabd86953617b7ed72901c5f3aee7b6d71;hp=42414c69207d9676f7a3b4fcc1d8ade6b1b799b4;hb=80d412bafc03ce9a0418a2b98de2668b0f8de0e6;hpb=d979d78e97786667d168ba183c9fc60c622d29c1 diff --git a/src/target/target.h b/src/target/target.h index 42414c6920..09895bbabd 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -399,6 +399,14 @@ int target_add_watchpoint(struct target *target, int target_remove_watchpoint(struct target *target, struct watchpoint *watchpoint); +/** + * Find out the just hit @a watchpoint for @a target. + * + * This routine is a wrapper for target->type->hit_watchpoint. + */ +int target_hit_watchpoint(struct target *target, + struct watchpoint **watchpoint); + /** * Obtain the registers for GDB. *