Do not reply OK forever if USB port closed
This commit is contained in:
parent
74b4b863c1
commit
02261b900e
|
@ -296,10 +296,11 @@ int gdb_main_loop(struct target_controller *tc, bool in_syscall)
|
||||||
if(cur_target) {
|
if(cur_target) {
|
||||||
SET_RUN_STATE(1);
|
SET_RUN_STATE(1);
|
||||||
target_detach(cur_target);
|
target_detach(cur_target);
|
||||||
|
last_target = cur_target;
|
||||||
|
cur_target = NULL;
|
||||||
}
|
}
|
||||||
last_target = cur_target;
|
if (pbuf[0] == 'D')
|
||||||
cur_target = NULL;
|
gdb_putpacketz("OK");
|
||||||
gdb_putpacketz("OK");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'k': /* Kill the target */
|
case 'k': /* Kill the target */
|
||||||
|
|
Loading…
Reference in New Issue