> PROBLEM: Saving will be hard, the JIM TCL does not support
> opening/closing/reading/writing files.
> Reloading is simple - "source filename.tcl"

Jim Tcl does have file IO(jim-aoi.c).

Do we want to add it?

I'd like scripts to work across operating systems. What Dario wants
to do is to save settings. Two approaches come to mind(imagination
being the limiting factor):

- add two commands ocd_save_setting/load_setting that take two parameters.
Settings name(no path) and  value. We can implement these in OpenOCD
and let the C part decide where to put it. Windows/Linux differ.
- add jim-aio.c package that gives us file IO.



-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to