Date: Sat, 27 Mar 2004 23:14:44 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 49829 for review Message-ID: <200403280714.i2S7Ei6u003786@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=49829 Change 49829 by marcel@marcel_nfs on 2004/03/27 23:14:33 Handle the T command. It's sent by gdb to check if a thread is alive. The command is sent prior to switching to that thread. This allows us to switch threads in gdb. Affected files ... .. //depot/projects/gdb/sys/gdb/gdb_main.c#10 edit Differences ... ==== //depot/projects/gdb/sys/gdb/gdb_main.c#10 (text+ko) ==== @@ -193,6 +193,18 @@ kdb_cpu_set_singlestep(); return (1); } + case 'T': { + intmax_t tid; + pid_t curtid; + gdb_rx_varhex(&tid); + curtid = kdb_thread->td_tid; + if (kdb_set_thread(tid)) + gdb_tx_ok(); + else + gdb_tx_err(ENOENT); + kdb_set_thread(tid); + break; + } case -1: /* Empty command. Treat as unknown command. */ /* FALLTHROUGH */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403280714.i2S7Ei6u003786>