On Mon, Sep 13, 2010 at 8:27 PM, Mike Dunn <[email protected]> wrote:
> Hi Øyvind,
>
> Thanks for indulging me. Don't mean to drag this out, but let me see if I
> understand...
>
> 1) error are reported when they occur (which would put them down in the target
> or interface code most of the time, I would guess).
> 2) return codes are basically considered by the common (target/interface -
> independent) code as booleans: OK or ERROR
Correct.
The retval is just propagated unmodified.
if (retval != ERROR_OK)
{
retval =ERROR_SOMETHING_OR_OTHER; // bad! :-)
}
--
Øyvind Harboe
US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development