Re: [PATCH v2 43/47] Windows gdb: extra thread info => show exiting

Tom Tromey
2025-05-28T19:58:42Z

>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:

Pedro> Now that we have easy access to each thread's last event, we can
Pedro> easily include some extra info in "info threads" output related to
Pedro> each thread's last event.

Pedro> This patch makes us show whether the thread is exiting, or causing a
Pedro> whole-process exit. This is useful when multiple threads hit events
Pedro> at the same time, and the thread/process exit events are still pending
Pedro> until the user re-resumes the program.

Pedro> This is similar to how linux-thread-db.c also shows "Exiting" in its
Pedro> target_extra_thread_info implementation.

Pedro> This will be relied on by the testcase added by the following patch.

I guess the same could be done for gdbserver?
I see remote_target::extra_thread_info.

Anyway, no need to implement it for this patch.
Maybe filing a bug report would be good though.

Approved-By: Tom Tromey <tom@tromey.com>

Tom