Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit fc36cb2

Browse files
committed
gdb_main: Modify qC (current thread id) and qfThreadInfo to report multiprocess p1.1 thread name
* This change should match p1.1 in halt-responses, without "QCp1.1" GDB-15 breaks after vKill/vRun. > In addition, the remote protocol supports a multiprocess feature in which the thread-id syntax is extended to optionally include both process and thread ID fields, as ‘ppid.tid’.
1 parent 5c512f6 commit fc36cb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gdb_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static void exec_q_c(const char *packet, const size_t length)
571571
{
572572
(void)packet;
573573
(void)length;
574-
gdb_put_packet_str("QC1");
574+
gdb_put_packet_str("QCp1.1");
575575
}
576576

577577
/*
@@ -585,7 +585,7 @@ static void exec_q_thread_info(const char *packet, const size_t length)
585585
{
586586
(void)length;
587587
if (packet[-11] == 'f' && cur_target)
588-
gdb_put_packet_str("m1");
588+
gdb_put_packet_str("mp1.1");
589589
else
590590
gdb_put_packet_str("l");
591591
}

0 commit comments

Comments
 (0)