Hi Rolf,

please try to rewrite your patch using log_try/catch/rethrow that
was just committed.

The correct implementation for handling a loop that tries something is
just like C++:

while (!lasttime)
{
  log_try();

    // attempt something here....

   lasttime = xxx;
  if (lasttime)
      log_rethrow();  /* here we propagate the actual error instead of
"rephrasing" it */
  else
    log_catch();
}




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

Reply via email to