mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
gdb(4): Include thread in Target Halt Reason
This saves a round trip of the gdb remote inferior attempting to find the thread id of the halted thread. Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
821fe3d3a4
commit
76c8c0902c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351365
|
@ -198,8 +198,11 @@ gdb_trap(int type, int code)
|
|||
/* printf("GDB: got '%s'\n", gdb_rxp); */
|
||||
switch (gdb_rx_char()) {
|
||||
case '?': /* Last signal. */
|
||||
gdb_tx_begin('S');
|
||||
gdb_tx_begin('T');
|
||||
gdb_tx_hex(gdb_cpu_signal(type, code), 2);
|
||||
gdb_tx_str("thread:");
|
||||
gdb_tx_varhex((long)kdb_thread->td_tid);
|
||||
gdb_tx_char(';');
|
||||
gdb_tx_end();
|
||||
break;
|
||||
case 'c': { /* Continue. */
|
||||
|
|
Loading…
Reference in a new issue