Re: [PATCH] gdb/Windows: Make windows-nat skip iterating GPU threads

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
>>>>> "Pedro" == Pedro Alves <[email protected]> writes:

Pedro> When the AMD GPU dbgapi target is pushed on the stack, the GPU threads
Pedro> are put in the same inferior thread list as the CPU threads.

Pedro> all_windows_threads() returns an iterator that walks all threads that
Pedro> have an inferior whose process_target() returns the Windows target.
Pedro> So it ends up walking GPU threads as well, which is incorrect and
Pedro> leads to crashes inside gdb/windows-nat.c.  E.g.:

Seems reasonable to me.
Approved-By: Tom Tromey <[email protected]>

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.