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.c | |
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.c')
-rw-r--r-- | src/target/target.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c index a54e0654..16d28727 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -546,6 +546,27 @@ int target_bulk_write_memory(struct target_s *target, return target->type->bulk_write_memory(target, address, count, buffer); } +int target_add_breakpoint(struct target_s *target, + struct breakpoint_s *breakpoint) +{ + return target->type->add_breakpoint(target, breakpoint); +} +int target_remove_breakpoint(struct target_s *target, + struct breakpoint_s *breakpoint) +{ + return target->type->remove_breakpoint(target, breakpoint); +} + +int target_add_watchpoint(struct target_s *target, + struct watchpoint_s *watchpoint) +{ + return target->type->add_watchpoint(target, watchpoint); +} +int target_remove_watchpoint(struct target_s *target, + struct watchpoint_s *watchpoint) +{ + return target->type->remove_watchpoint(target, watchpoint); +} int target_get_gdb_reg_list(struct target_s *target, struct reg_s **reg_list[], int *reg_list_size) |