diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 11:30:59 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 11:30:59 +0000 |
commit | df4cf0615f4103b42ca35cacb504126b5f55ac08 (patch) | |
tree | 673a194d9dd3bbaefabb2f08322b0015fd8d6842 /src/target/target.c | |
parent | 11edf227768f41b2a96c0d26a871f9e5f89d259a (diff) |
Add target_get_gdb_reg_list wrapper:
- replaces all calls to target->type->get_gdb_reg_list.
- add documentation in target_s to warn not to invoke callback directly.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1964 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c index 4a60cc49..7a4548cc 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -543,6 +543,12 @@ int target_bulk_write_memory(struct target_s *target, } +int target_get_gdb_reg_list(struct target_s *target, + struct reg_s **reg_list[], int *reg_list_size) +{ + return target->type->get_gdb_reg_list(target, reg_list, reg_list_size); +} + int target_run_algorithm(struct target_s *target, int num_mem_params, mem_param_t *mem_params, int num_reg_params, reg_param_t *reg_param, |