From: Spencer O. <nt...@us...> - 2010-02-03 14:10: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 95ed9c43936d0d41c5b298fc4efaba4dc2e20f18 (commit) from 18969466c91e75102f76be60d00a11cb93ed329d (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 95ed9c43936d0d41c5b298fc4efaba4dc2e20f18 Author: Spencer Oliver <nt...@us...> Date: Wed Feb 3 13:08:42 2010 +0000 JTAG: fix bug when no interface connected - fix coredump when OpenOCD is started without a jtag interface connected. Signed-off-by: Spencer Oliver <nt...@us...> diff --git a/src/jtag/core.c b/src/jtag/core.c index 8a580e9..4f517c0 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -1623,6 +1623,13 @@ bool jtag_will_verify_capture_ir() int jtag_power_dropout(int *dropout) { + if (jtag == NULL) + { + /* TODO: as the jtag interface is not valid all + * we can do at the moment is exit OpenOCD */ + LOG_ERROR("No Valid JTAG Interface Configured."); + exit(-1); + } return jtag->power_dropout(dropout); } ----------------------------------------------------------------------- Summary of changes: src/jtag/core.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) hooks/post-receive -- Main OpenOCD repository |