This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR threads/19354: "info threads" error with multiple inferiors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]