> That just complicates the normal case for no reason.  If you leave the
> expected-id comparison in C, you can still do things like:

A shorthand for the normal case is of course a requirement.

-expected-id can be implemented in Tcl: it can attach a default
piece of tcl to handle the normal case.

Here we "eat our own dogfood", i.e. we reuse the same codepath and
prove that the tcl handler can do whatever C can do.

btw, I think the best way is to "return -error" to throw an exception and leave
the primary return value alone.

-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to