Here is a set of commands that reproduces my problem. While I agree with David about -c and -f bug, this is a different one.
# Ubuntu 9.04 git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd cd ./openocd ./bootstrap ./configure --enable-maintainer-mode --enable-dummy make cd src # The line does not fail ./openocd -s ../tcl/target/ -f ../tcl/target/telo.cfg -c 'interface dummy' --debug 3 -c "proc jtag_init {} {jtag arp_init-reset}" # This line does fail ./openocd -s ../tcl/target/ -f ../tcl/target/telo.cfg -c 'interface dummy' --debug 3 -c "proc jtag_init {} {jtag arp_init-reset if { [info exists RESET_ME] } {jtag arp_init-reset}}" No modifications to any files are required. On Mon, 2009-10-19 at 21:13 +0200, Øyvind Harboe wrote: > > does not work. It looks like the 'if' statement break things. It does > > not matter whether RESET_ON_INIT is defined or not. > > I run openocd with: > > ./openocd -c 'interface dummy' -f telo.cfg -c "set RESET_ON_INIT 1" > > --debug 3 > > It looks like you've run into a somewhat subtle bug and I can't reproduce > it here. > > Could you provide *all and the exact* steps including but not limited > to, building, current directory when you invoke openocd, the unmodified > config script(I had to modify telo.cfg to make it run), etc. > > Hopefully I'll be able to reproduce it here and work on it from there... > > (The alternative to reproducing & fixing it now is of course that it will > crop up at a very inconvenient time...) > _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development