On Sun, Jun 3, 2012 at 6:27 PM, Alexander Osipenko <[email protected]> wrote:

> Hello again,
>
> I'm still trying to return a value from "arm946e cp15" command to the
> calling script.
>
> I was not able to identify code patterns of return values 
> ​​fromCOMMAND_HANDLER()
> to the script engine.
>

You're correct. COMMAND_HANDLER() just prints out various information and
you can detect success/failure from Tcl.

Tcl commands have a well defined return value in addition to the
success/failure exception state.



>
>
> I guess to change the behavior of existing command, the other way
> is to add new "arm946e_cp15" for example, command.
> Which will be preferrable?
>

I guess we'll need both kinds of commands in some cases, but I think it
makes sense to switch some to tcl only.

Perhaps you can try the "mcr/mrc" commands? Does that work for your
architecture?

-- 
Øyvind Harboe - Can Zylin Consulting help on your project?
US toll free 1-866-980-3434
http://www.zylin.com/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to