[PATCH] Fix PR threads/19354: "info threads" error with multiple inferiors
Pedro Alves
palves@redhat.com
Thu Dec 17 15:04:00 GMT 2015
On 12/11/2015 12:25 PM, Pedro Alves wrote:
> (gdb) add-inferior
> Added inferior 2
> (gdb) inferior 2
> [Switching to inferior 2 [<null>] (<noexec>)]
> (gdb) info inferiors
> Num Description Executable
> 1 process 15397 /home/pedro/gdb/tests/threads
> * 2 <null>
> (gdb) info threads
> Cannot find new threads: generic error
> (gdb)
>
> Fix this by checking whether each inferior has execution rather than
> just the current inferior.
I've pushed this in as well.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list