This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Make linux native always have at least one thread
A Monday 24 March 2008 22:50:28, Daniel Jacobowitz wrote:
> On Mon, Mar 24, 2008 at 08:54:39PM +0000, Pedro Alves wrote:
> > 2008-01-24 Pedro Alves <pedro@codesourcery.com>
> >
> > * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
> > gdb's thread list.
> > (linux_nat_wait): Add main lwp to gdb's thread list.
> > * linux-thread-db.c (find_new_threads_callback): Also attach to
> > already listed threads which thread_db didn't know about yet.
>
> OK - yay!
Checked in.
How bad would it be to have a testcase that did,
int main () {}
start
info threads
?
It could help us identify which targets need
the fixing.
--
Pedro Alves