I don't know the precise details, but an overrideable proc
comes to mind.
Is that what you are thinking?
# Default implementation
proc target_0_reset_gdb_attach {} {reset init}
To override in config file:
proc target_0_reset_gdb_attach {} {soft_reset_halt}
If you don't like the tcl syntax above, we can write a command that
issues defines the proc. But to suggest something I'd need
to know more precisely what you have in mind.
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development