The r1962 patch to add a target examined wrapper created a mips bug.

https://lists.berlios.de/pipermail/openocd-svn/2009-May/000746.html
here is the offending hunk:

Modified: trunk/src/target/mips32.c
===================================================================
--- trunk/src/target/mips32.c   2009-05-31 09:38:20 UTC (rev 1961)
+++ trunk/src/target/mips32.c   2009-05-31 09:38:43 UTC (rev 1962)
@@ -346,9 +346,9 @@
 {
        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;

and the fix:

Index: src/target/mips32.c
===================================================================
--- src/target/mips32.c (revision 2201)
+++ src/target/mips32.c (working copy)
@@ -346,7 +346,7 @@
 {
        mips32_common_t *mips32 = target->arch_info;

-       if (target_was_examined(target))
+       if (!target_was_examined(target))
        {
                target_set_examined(target);


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to