Try/catch scheme. Typed up the functionality and regression tested.

Ready for discussion and tiny patches that tries out this scheme.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2755 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2009-09-25 11:11:39 +00:00
parent 37755ffdb6
commit 1c262c8826
2 changed files with 100 additions and 9 deletions

View File

@@ -64,6 +64,15 @@ extern void kept_alive(void);
extern void alive_sleep(int ms);
extern void busy_sleep(int ms);
/* log entries can be paused and replayed roughly according to the try/catch/rethrow
* concepts in C++
*/
void log_try(void);
void log_catch(void);
void log_rethrow(void);
typedef void (*log_callback_fn)(void *priv, const char *file, int line,
const char *function, const char *string);