aboutsummaryrefslogtreecommitdiff
path: root/src/helper/log.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-25 11:11:39 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-25 11:11:39 +0000
commit1c262c8826067b0d240f6db1c4eebf5514ea7475 (patch)
treef7655fc878d6904a7416e50d9280650853feab92 /src/helper/log.h
parent37755ffdb63164e768745369a98f06c5ec9d476d (diff)
downloadriscv-openocd-1c262c8826067b0d240f6db1c4eebf5514ea7475.zip
riscv-openocd-1c262c8826067b0d240f6db1c4eebf5514ea7475.tar.gz
riscv-openocd-1c262c8826067b0d240f6db1c4eebf5514ea7475.tar.bz2
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
Diffstat (limited to 'src/helper/log.h')
-rw-r--r--src/helper/log.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/helper/log.h b/src/helper/log.h
index c3be074..7fc5a88 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -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);