diff options
author | grehan <grehan@FreeBSD.org> | 2008-02-29 01:57:20 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2008-02-29 01:57:20 +0000 |
commit | 52310eca06bac730a94e6badc26da3678600e145 (patch) | |
tree | d80924f6ed9a58cc94781f3f939a8b510bc3ccfe /sys/gdb/gdb_main.c | |
parent | aa08e756e25b6a8d5d4eaaf6def143fdb69f758a (diff) | |
download | FreeBSD-src-52310eca06bac730a94e6badc26da3678600e145.zip FreeBSD-src-52310eca06bac730a94e6badc26da3678600e145.tar.gz |
Add support for kgdb's 'detach' command.
Reviewed by: marcel
Sponsored by: Network Appliance
Diffstat (limited to 'sys/gdb/gdb_main.c')
-rw-r--r-- | sys/gdb/gdb_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/gdb/gdb_main.c b/sys/gdb/gdb_main.c index 3ba3dbf..233330e 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); |