summaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 11:30:59 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 11:30:59 +0000
commitdf4cf0615f4103b42ca35cacb504126b5f55ac08 (patch)
tree673a194d9dd3bbaefabb2f08322b0015fd8d6842 /src/target/target.h
parent11edf227768f41b2a96c0d26a871f9e5f89d259a (diff)
downloadopenocd+libswd-df4cf0615f4103b42ca35cacb504126b5f55ac08.tar.gz
openocd+libswd-df4cf0615f4103b42ca35cacb504126b5f55ac08.tar.bz2
openocd+libswd-df4cf0615f4103b42ca35cacb504126b5f55ac08.tar.xz
openocd+libswd-df4cf0615f4103b42ca35cacb504126b5f55ac08.zip
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.h')
-rw-r--r--src/target/target.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 9674c473..1b288938 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -151,7 +151,9 @@ typedef struct target_type_s
int (*soft_reset_halt_imp)(struct target_s *target);
int (*soft_reset_halt)(struct target_s *target);
- /* target register access for gdb.
+ /**
+ * Target register access for GDB. Do @b not call this function
+ * directly, use target_get_gdb_reg_list() instead.
*
* Danger! this function will succeed even if the target is running
* and return a register list with dummy values.
@@ -401,6 +403,14 @@ extern void target_set_examined(struct target_s *target);
extern void target_reset_examined(struct target_s *target);
/**
+ * Obtain the registers for GDB.
+ *
+ * This routine is a wrapper for target->type->get_gdb_reg_list.
+ */
+extern int target_get_gdb_reg_list(struct target_s *target,
+ struct reg_s **reg_list[], int *reg_list_size);
+
+/**
* Run an algorithm on the @a target given.
*
* This routine is a wrapper for target->type->run_algorithm.