This is an automated email from Gerrit. Drasko DRASKOVIC (drasko.drasko...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/513
-- gerrit commit e1964a02042314b069f4a5b5cd49cdb503d0b2e5 Author: Drasko DRASKOVIC <drasko.drasko...@gmail.com> Date: Mon Mar 12 22:10:24 2012 +0100 mips: Forced to running state to enable (subsequent) target halt. Change-Id: I9aff8fb3ac703b50194088dd4e68cec8f9bb2ada Signed-off-by: Drasko DRASKOVIC <drasko.drasko...@gmail.com> diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index aa9dbe7..6e331ed 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -143,6 +143,17 @@ static int mips_m4k_poll(struct target *target) /* check for processor halted */ if (ejtag_ctrl & EJTAG_CTRL_BRKST) { + if (target->state == TARGET_UNKNOWN) { + LOG_DEBUG("EJTAG_CTRL_BRKST already set during server startup."); + + /* OpenOCD was was probably started on the board with EJTAG_CTRL_BRKST already set + * (maybe put on by HALT-ing the board in the previous session). + * + * Force target to RUNNING state to enable debug entry for this session. + */ + target->state = TARGET_RUNNING; + } + if ((target->state == TARGET_RUNNING) || (target->state == TARGET_RESET)) { mips_ejtag_set_instr(ejtag_info, EJTAG_INST_NORMALBOOT); -- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel