diff --git a/sys/gdb/gdb_main.c b/sys/gdb/gdb_main.c index 3ba3dbf00c9b..233330e5b9e0 100644 --- a/sys/gdb/gdb_main.c +++ b/sys/gdb/gdb_main.c @@ -145,6 +145,11 @@ gdb_trap(int type, int code) gdb_listening = 1; return (1); } + case 'D': { /* Detach */ + gdb_tx_ok(); + kdb_cpu_clear_singlestep(); + return (1); + } case 'g': { /* Read registers. */ size_t r; gdb_tx_begin(0);