This old post from Paul may help:
On 11.9.2014 9:35, Paul Fertser wrote:
On Sat, Sep 06, 2014 at 05:54:26AM +0200, Tomas Vanek wrote:
And second one: how to read pc register in tcl?
set pc_value [reg pc]
does not work.
set pc_value [ocd_reg pc]
will probably work.
Tomas
On 20.2.2015 17:31, Kent Brinkley wrote:
Hello,
I want to do something every simple in a tcl script, is there a way to
extract the contents of register. If I do
> reg r1
r1 (/32): 0x94D3F5E8
>reg pc
pc (/32): 0xBFC00000
>reg r1 [expr [reg pc]] - to assign the contents of the pc to r1 it
fails to do so.
> reg r1
r1 (/32): 0x94D3F5E8
What am I overlooking here?
Thanks for your help,
Kent
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel