From: Øyvind H. <go...@us...> - 2010-05-31 07:15:18
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via d944a0bed73c63fe52cf546a7121823318e8b593 (commit) from 86e851e1e263c79f19eb9db52553de99f19b8bb9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d944a0bed73c63fe52cf546a7121823318e8b593 Author: Jon Povey <jon...@ra...> Date: Mon May 31 11:56:42 2010 +0900 etm: print something when trace buffer empty ETM analyze produced no output when the trace buffer was empty. This patch provides users with a clue. Signed-off-by: Jon Povey <jon...@ra...> Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/target/etm.c b/src/target/etm.c index 4f4bf9a..61ee99a 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -882,6 +882,11 @@ static int etmv1_analyze_trace(struct etm_context *ctx, struct command_context * if (ctx->trace_depth == 0) ctx->capture_driver->read_trace(ctx); + if (ctx->trace_depth == 0) { + command_print(cmd_ctx, "Trace is empty."); + return ERROR_OK; + } + /* start at the beginning of the captured trace */ ctx->pipe_index = 0; ctx->data_index = 0; ----------------------------------------------------------------------- Summary of changes: src/target/etm.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) hooks/post-receive -- Main OpenOCD repository |