Re: [OpenOCD-devel] Provide command outputs as TCL strings

2014-01-27 Thread Paul Fertser
Hi, On Mon, Jan 27, 2014 at 02:46:41PM +0100, Alex Züpke wrote: > currently, commands like "reg" or "mdw" return an empty string when > using in TCL scripting: Yes, an easy way is to use ocd_reg, ocd_mdw instead. The right way is imho http://openocd.zylin.com/1815 . > - would it make sense to r

[OpenOCD-devel] Provide command outputs as TCL strings

2014-01-27 Thread Alex Züpke
Hi, currently, commands like "reg" or "mdw" return an empty string when using in TCL scripting: > reg pc pc (/32): 0x11E0 > set pc [reg pc] pc (/32): 0x11E0 > echo $pc > I tried a quick hack for "reg" and it seemed to work in the beginning, but later OpenOCD crashed on invalid po