Now that the dust has settled, I'm thinking that it is time to start
tightening the bolts and tidy up things.

The first thing I'd like to clean up is to make old-post_reset a
first class citizen again. :-)

old-post_reset is the most important event that just about anyone
writing a target configuration script will encounter.

How about simply renaming this event to indicate that it is
still fully supported and recommended rather than something
old and nasty to be ignored?

old-post_reset => reset-init


Also, the "reset-init" event is probably the best one to use an
example in openocd.texi.

Thoughts?


    #Pass 2 - if needed "init"
    if { 0 == [string compare init $MODE] } {
        foreach t [target names] {
            set err [catch "$t arp_waitstate halted 5000"]
            # Did it halt?
            if { $err == 0 } {
                $t invoke-event old-post_reset
            }
        }
    }

    foreach t [ target names ] {
        $t invoke-event reset-end
    }

-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to