This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Can't attach to child using gdb-5.1.1 on Linux
Andrew Cagney writes:
> > The stack traces look good before and after, but I can't debug anything.
> > I did create a core file of gdb this time, and will submit if you want me
> > to.
>
> I don't know that the core fill will be of much use. However, a test
> case and the backtrace from the GDB core file would be.
In the general case this seems to work (ie. fork and try to attach to a
sleeping child). My program seems to be doing something that causes gdb
to behave differently. I am still trying to generate a test case for it.