> Are you doing some special pre-processing before passing it to TCL so that
> openocd-specific commands don't need the semicolon (to maintain backward
> compatibility?)

Essentially. Though *after* I get it back from Tcl and before I pass it to the
openocd commands, I strip all args after the arg starting w/'#'.

> There seems to be a mishmash of conventions:
>
> set i 8;   # This works

This is equivalent to:

set i 8
# this works

i.e. the comment is the beginning of a new statement

> set i 8    # Does not work

this is a syntax error. Tcl does not support args at the end of a line.

>
> poll;   # This works
> poll   # This also works

Here the postprocessing saves you.

>
> mww 0xffffff64 0x5a00000d  # Also works
>
> poll  # Including semicolon in comment; doesn't work
>
> Multiple line if and while statements don't work like they do in tclsh.  In
> fact, while statements freeze the telnet session:

OpenOCD does not have a tcl shell, but rather a telnet session
to pick up a line of text that is passed to tcl.

>
> Open On-Chip Debugger
>> set a 2
> 2
>> while {$a > 0} {
>
> <freeze with openocd using 100% cpu>

that's a bug I guess. I'd commit a patch that fixes it. For now I've committed
a description to trunk/bugs.txt


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