From: Ø. H. <oyv...@zy...> - 2008-07-30 08:07:08
|
Did anyone try this? Some comments on implementation and regards to how to make it more generic. 1. I'd like to see it adapted a bit to scripting, to make it easier to use. This will allow the function keys to be defined in the target configuration scripts without adding one file per key. Change: retval = command_run_line(command_context, "script f4.script"); To: retval = command_run_linef(command_context, "key_%s", fn_key); - You can then write a single file w/all your scripts. To handle keys: proc key_f1 {} { reset init } 2. We can put the debugger script into the openocd/src/tcl directory. 3. Document it in openocd.texi. Add some convention about which function keys that are reserved for the target configuration script specific operations and which are reserved for e.g. this telnet debugger. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer |