From 9cb3af610a1d7cc2d8c1433f54077938d0268a8f Mon Sep 17 00:00:00 2001 From: zwelch Date: Sun, 31 May 2009 09:38:43 +0000 Subject: Add wrappers for target->type->examined: - replace all checks of target->type->examined with target_was_examined(). - replace all setting of target->type->examined with target_set_examined(). - replace clearing of target->type->examined with target_reset_examined(). - add documentation in target_s to warn not to access field directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1962 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/mips32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/target/mips32.c') diff --git a/src/target/mips32.c b/src/target/mips32.c index 084e6276..9eb7b0c9 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -346,9 +346,9 @@ int mips32_examine(struct target_s *target) { mips32_common_t *mips32 = target->arch_info; - if (!target->type->examined) + if (target_was_examined(target)) { - target->type->examined = 1; + target_set_examined(target); /* we will configure later */ mips32->bp_scanned = 0; -- cgit v1.2.3