On Monday 06 July 2009, Øyvind Harboe wrote: > > There's more that should be said about returning values > > from Tcl commands ... so that scripts can use them. > > Can you give some examples of where tcl scripts would do > anything but catch exceptions as a boolean fail/succeed?
Any time they need to do something conditional, or use a value from a register... and remember, errors are often hidden by returning success codes. (After spamming the server output with a useless-to-the-script message, sigh.) > Should we rely on tcl scripts for anything more complicated? If we can't, why do we even have an extension language??? One point of comparison is that TI's "Code Composer Studio" supports "*.gel" files with script that's used for all kinds of initialization. The board support for the dm365 (beta) came with one GEL file that's about 135 KBytes big ... the first eight scripts provide menus in their GUI, each setting up a different PLL/clock configurations for the ARM and DDR. It should *not* be necessary to write C code for such stuff, and rebuild the server... - Dave _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
