>
> > Comments at the end of lines do not work in telnet, which makes
> > pasting pieces of .cfg files in difficult.
>
> OpenOCD uses TCL now, but I did add support for # comments
> at the end of openocd commands a while back.
>
> Which subversion version are you running?
>
> If you add "; # comment" to the end of the line, then the ";" indicates
> a new Tcl statement and the # is the Tcl comment char.
>
> Should work.
>
Yes this works now. I had this problem with an old version and I guess I
didn't re-try this particular issue when I built the svn version (now my
build is at 929)
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?)
There seems to be a mishmash of conventions:
set i 8; # This works
set i 8 # Does not work
poll; # This works
poll # This also works
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:
Open On-Chip Debugger
> set a 2
2
> while {$a > 0} {
<freeze with openocd using 100% cpu>
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development