A better way to address this, IMHO, would be to fix the design
problem at it's root.

Retire ERROR_SERVER_REMOTE_CLOSED and
ERROR_COMMAND_CLOSE_CONNECTION with some more explicit
communication mechanism between the layers. The primary
return value is here used as a poor substitute for an exception
mechanism.

Even with "proper" exceptions, I wouldn't use exceptions
in this way for precisely the same reasons that we see in OpenOCD:
it becomes a mess.

-- 
Ø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

Reply via email to