diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 11:31:52 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 11:31:52 +0000 |
commit | d00ac17e8e06fa06acde570d89ac6a90126359c8 (patch) | |
tree | eee6311ebd70f252ade73066a53228bc52c5fac8 /src/target/target.h | |
parent | 0de78ed02c7e2caaf96eafb814c6059ceb9582b2 (diff) |
Add target breakpoint and watchpoint wrapper:
- replaces all calls to target->type->{add,remove}_{break,watch}point.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1967 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.h')
-rw-r--r-- | src/target/target.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/target/target.h b/src/target/target.h index 91dd1b15..6e282d9e 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -413,6 +413,36 @@ extern void target_set_examined(struct target_s *target); /// Reset the @c examined flag for the given target. extern void target_reset_examined(struct target_s *target); + +/** + * Add the @a breakpoint for @a target. + * + * This routine is a wrapper for target->type->add_breakpoint. + */ +extern int target_add_breakpoint(struct target_s *target, + struct breakpoint_s *breakpoint); +/** + * Remove the @a breakpoint for @a target. + * + * This routine is a wrapper for target->type->remove_breakpoint. + */ +extern int target_remove_breakpoint(struct target_s *target, + struct breakpoint_s *breakpoint); +/** + * Add the @a watchpoint for @a target. + * + * This routine is a wrapper for target->type->add_watchpoint. + */ +extern int target_add_watchpoint(struct target_s *target, + struct watchpoint_s *watchpoint); +/** + * Remove the @a watchpoint for @a target. + * + * This routine is a wrapper for target->type->remove_watchpoint. + */ +extern int target_remove_watchpoint(struct target_s *target, + struct watchpoint_s *watchpoint); + /** * Obtain the registers for GDB. * |