Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-25 Thread Paul Fertser
Hi, On Fri, Nov 01, 2013 at 07:29:18PM +0100, Andreas Fritiofson wrote: What's the difference between log output and return values? Why should any command output what could be the return value through the log facility? One of the main problems with the telnet interface is the lack of sane

Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-02 Thread Paul Fertser
On Fri, Nov 01, 2013 at 07:29:18PM +0100, Andreas Fritiofson wrote: Myself, I'm far too confused by the command/Jim interactions to provide any useful input. I think I'm starting to grasp enough of it already, so will hopefully be able to work on the most pressing issues. The way it's done is

Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-01 Thread Paul Fertser
Hi, On Tue, Oct 15, 2013 at 11:45:20AM +0400, Paul Fertser wrote: As I think the 1. trick is a good one (and ocd_bouncer is a bad one), I'm proposing to: 1. Eliminate ocd_bouncer altogether; 2. Disable auto-printing return values to the openocd console; 3. Add back whatever important

Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-01 Thread Andreas Fritiofson
On Fri, Nov 1, 2013 at 5:47 PM, Paul Fertser fercer...@gmail.com wrote: Hi, On Tue, Oct 15, 2013 at 11:45:20AM +0400, Paul Fertser wrote: As I think the 1. trick is a good one (and ocd_bouncer is a bad one), I'm proposing to: 1. Eliminate ocd_bouncer altogether; 2. Disable

[OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-10-15 Thread Paul Fertser
Hi, Some time ago Jan Lübbe (shoragan) asked an interesting question on IRC: why the hell some Tcl functions do not return anything at all when he's calling them via the RPC interface? After quite some digging through the code I finally understood that: 1. OpenOCD has a smart cool trick to make