Hi,

Would it make sense to add something like this to default
configuration? What are the objections?

$_TARGETNAME configure -event gdb-attach {
    halt
    wait_halt
}

$_TARGETNAME configure -event gdb-flash-erase-start {
    reset init
}

$_TARGETNAME configure -event gdb-flash-write-end {
    # Here reset init is inappropriate because for some targets it
    # does additional initialisation and we would like to see the
    # firmware running like it would do straight from cold-boot
    #
    # But after reset halt some targets might become inaccessible
    # until the adapter_khz is lowered enough for their default
    # clock. FIXME
    reset halt
}

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to