linux-fork.c: rewrite inf_has_multiple_threads
authorPedro Alves <palves@redhat.com>
Wed, 6 Mar 2019 18:29:19 +0000 (18:29 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 6 Mar 2019 18:29:19 +0000 (18:29 +0000)
commite52c971f17ac747a065388b54a909f44b5582cd9
tree6d797a4bcec7cd518fdd9313b644c385a4be5d8e
parent06974e6c05556edb7122f45239c95045e882dc76
linux-fork.c: rewrite inf_has_multiple_threads

There's no need to iterate over all threads of all inferiors here.

gdb/ChangeLog:
2019-03-06  Pedro Alves  <palves@redhat.com>

* linux-fork.c (inf_has_multiple_thread_cb): Delete.
(inf_has_multiple_threads): Return 'bool' and rewrite using
inferior_info::threads().
gdb/ChangeLog
gdb/linux-fork.c