On Sun, May 10, 2009 at 8:37 AM, David Brownell <[email protected]> wrote:
> 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?).

Just write a small tcl proc to wrap the mem/array proc's?

-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://consulting.zylin.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to