aboutsummaryrefslogtreecommitdiff
path: root/src/helper/log.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-18 10:20:10 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-18 10:20:10 +0000
commit94e75e0c06c4d683b33a03aee17b80c8a59bbd47 (patch)
tree0119048c905e9fa2d382ac62f69223b2de376092 /src/helper/log.h
parent7648d6b28793e8eb436a56682915185cb819ff5e (diff)
downloadriscv-openocd-94e75e0c06c4d683b33a03aee17b80c8a59bbd47.zip
riscv-openocd-94e75e0c06c4d683b33a03aee17b80c8a59bbd47.tar.gz
riscv-openocd-94e75e0c06c4d683b33a03aee17b80c8a59bbd47.tar.bz2
1. GDB will print cryptic error messages if it is not fed keep-alive packets
within the last 2000ms. To fix this, add keep_alive() if you are spending >1000ms in an algorithm thus holding up the server loop. target_call_timer_callbacks() invokes keep_alive(). 2. post_reset script is now executed at normal JTAG speed and not reset speed. 3. Resume is now synchronous again. Hopefully it will work this time. git-svn-id: svn://svn.berlios.de/openocd/trunk@826 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/log.h')
-rw-r--r--src/helper/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helper/log.h b/src/helper/log.h
index 37490a8..7a7c90c 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -56,6 +56,8 @@ __attribute__ ((format (printf, 5, 6)));
extern int log_register_commands(struct command_context_s *cmd_ctx);
extern int log_init(struct command_context_s *cmd_ctx);
extern int set_log_output(struct command_context_s *cmd_ctx, FILE *output);
+extern void keep_alive();
+extern void kept_alive();
typedef void (*log_callback_fn)(void *priv, const char *file, int line,
const char *function, const char *string);