On Sun, Jul 20, 2008 at 7:45 PM, Dominic Rath <[EMAIL PROTECTED]> wrote:
> Hi list, and especially the TCL gurus,
>
> I just tried the current SVN head a bit, and quickly realized that incomplete
> commands didn't work anymore.
>
> I remember reading something about this in one of the recent mails, but can't
> find it right now. Is that functionality only temporarily gone, or is this a
> necessity that comes with the TCL support?

This *can* be added back, but I'm not sure it's a good idea with
scripting.

When the number of commands grow, shorthands can quickly become
ambigious from one version to the next.

Target scripts as well as target written in C can add commands.

> It was rather convenient being able to shortcut things like "shutdown"
> with "shut".

I know you don't like tcl :-), but you can define any command you like
in your config script. Paste in the lines below as an example.

# Allow typing "x" for shutdown
proc x {} {
   shutdown
}

If you want to add arguments:

proc y {foo} {
  reset $y
}



-- 
Ø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

Reply via email to