From 17fa4de8541ac12fad2ce836aa61d22dbf1642c8 Mon Sep 17 00:00:00 2001 From: zwelch Date: Sun, 31 May 2009 11:31:11 +0000 Subject: Add target_step wrapper: - replaces all calls to target->type->step. git-svn-id: svn://svn.berlios.de/openocd/trunk@1965 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 6 ++++++ src/target/target.h | 7 +++++++ 2 files changed, 13 insertions(+) (limited to 'src/target') diff --git a/src/target/target.c b/src/target/target.c index 7a4548cc..993b8c61 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -548,6 +548,12 @@ int target_get_gdb_reg_list(struct target_s *target, { return target->type->get_gdb_reg_list(target, reg_list, reg_list_size); } +int target_step(struct target_s *target, + int current, u32 address, int handle_breakpoints) +{ + return target->type->step(target, current, address, handle_breakpoints); +} + int target_run_algorithm(struct target_s *target, int num_mem_params, mem_param_t *mem_params, diff --git a/src/target/target.h b/src/target/target.h index 1b288938..3d9d8e9f 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -410,6 +410,13 @@ extern void target_reset_examined(struct target_s *target); extern int target_get_gdb_reg_list(struct target_s *target, struct reg_s **reg_list[], int *reg_list_size); +/** + * Step the target. + * + * This routine is a wrapper for target->type->step. + */ +int target_step(struct target_s *target, + int current, u32 address, int handle_breakpoints); /** * Run an algorithm on the @a target given. * -- cgit v1.2.3