On Saturday 09 May 2009, Magnus Lundin wrote:
> The other to trick is to prefix openocd commands with ocd_ to tell the
> tcl interpretr to grab openocd output as tcl input.
>
> > set v "[ocd_mdw 0]"
> 0x00000000: e59ff04c
> 0x00000000: e59ff04c
>
> > puts "$v"
> 0x00000000: e59ff04c
>
> > split $v :
> 0x00000000 { e59ff04c
> }
Well, neither of these solutions seems excessively elegant ... ;)
Thanks for the suggestions. It doesn't look quite straightforward
to add new "mrw" commands that return a value ... the interpreter
is hidden at the point you've got to set its return value (or is
there just a single global one?).
So I suspect I'll end up using one or the other of these, until
something ... less excessively inelegant? ... arrives. Thanks!
- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development