Just shooting from the hip: "args" is a reserved name for arguments to procs which is used to implement variable number arguments. "args" is not a single argument, but an array.
I don't know what happens when "args" is last in the list of arguments to a proc or if it even has a defined meaning... It looks like you pass in an array instead of splitting it up into individual arguments. proc foo {args} { # how to forward this to proc "bar"? # # This is wrong, it passes in a single argument, an array to bar bar $args # This will work, except I'm not sure what happens in all the # escape rule cases... or is this 100% clean? eval "bar $args" } http://wiki.tcl.tk/1017 -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development