diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2019-08-19 22:58:30 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2019-08-19 22:58:30 +0000 |
commit | 3bbe6e643c39377e5b30792673a9595a2eed12b4 (patch) | |
tree | a017e22b21455e9ee1473aa114368929fcce7aa8 /sys | |
parent | 130ef1ad119b9f7570ec962474b76f754f8d644b (diff) | |
download | src-3bbe6e643c39377e5b30792673a9595a2eed12b4.tar.gz src-3bbe6e643c39377e5b30792673a9595a2eed12b4.zip |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/gdb/gdb_main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/gdb/gdb_main.c b/sys/gdb/gdb_main.c index aabbf983ba25..20d9fcc3bc97 100644 --- a/sys/gdb/gdb_main.c +++ b/sys/gdb/gdb_main.c @@ -305,7 +305,13 @@ gdb_trap(int type, int code) break; } case 'q': /* General query. */ - if (gdb_rx_equal("fThreadInfo")) { + if (gdb_rx_equal("C")) { + gdb_tx_begin('Q'); + gdb_tx_char('C'); + gdb_tx_varhex((long)kdb_thread->td_tid); + gdb_tx_end(); + break; + } else if (gdb_rx_equal("fThreadInfo")) { thr_iter = kdb_thr_first(); gdb_do_threadinfo(&thr_iter); } else if (gdb_rx_equal("sThreadInfo")) { |