forked from auracaster/openocd
nds32: always polling after gdb attached
Do not turn on/off polling as leave/enter debug mode. Enable polling after gdb attached, and disable polling after gdb detached. Change-Id: Id64459b86f44937af7ea5ccfe2cd13e31732eecf Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com> Reviewed-on: http://openocd.zylin.com/1574 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
9288a59aa1
commit
54d8a801b2
@@ -71,8 +71,6 @@ static int nds32_v3_debug_entry(struct nds32 *nds32, bool enable_watchpoint)
|
||||
{
|
||||
LOG_DEBUG("nds32_v3_debug_entry");
|
||||
|
||||
jtag_poll_set_enabled(false);
|
||||
|
||||
enum target_state backup_state = nds32->target->state;
|
||||
nds32->target->state = TARGET_HALTED;
|
||||
|
||||
@@ -117,8 +115,6 @@ static int nds32_v3_debug_entry(struct nds32 *nds32, bool enable_watchpoint)
|
||||
if (enable_watchpoint)
|
||||
CHECK_RETVAL(v3_common_callback->activate_hardware_watchpoint(nds32->target));
|
||||
|
||||
jtag_poll_set_enabled(true);
|
||||
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
@@ -228,9 +224,6 @@ static int nds32_v3_leave_debug_state(struct nds32 *nds32, bool enable_watchpoin
|
||||
target_add_breakpoint(target, &syscall_breakpoint);
|
||||
}
|
||||
|
||||
/* enable polling */
|
||||
jtag_poll_set_enabled(true);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user