Do not reply OK forever if USB port closed

This commit is contained in:
fabalthazar 2021-12-02 21:36:31 +01:00 committed by Piotr Esden-Tempski
parent 74b4b863c1
commit 02261b900e
1 changed files with 4 additions and 3 deletions

View File

@ -296,9 +296,10 @@ int gdb_main_loop(struct target_controller *tc, bool in_syscall)
if(cur_target) {
SET_RUN_STATE(1);
target_detach(cur_target);
}
last_target = cur_target;
cur_target = NULL;
}
if (pbuf[0] == 'D')
gdb_putpacketz("OK");
break;