This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Don't use thread_db on corefiles
Daniel Jacobowitz wrote:
>
> On Thu, Dec 13, 2001 at 05:26:47PM -0800, Michael Snyder wrote:
> > Daniel Jacobowitz wrote:
> > >
> > > On Thu, Dec 13, 2001 at 06:56:36PM -0500, Daniel Jacobowitz wrote:
> > > > Thread_db, as things stand, does not work on core files. Is preventing
> > > > it from trying, and thus crashing GDB, really such a disruptive
> > > > suggestion?
> > >
> > > OK, that came out a little harsher than I really wanted it. Sorry.
> > >
> > > I'd like to apply this patch and then add an entry to TODO about
> > > how it "should be done". Is that better?
> >
> > I'd really like to be able to look at the problem myself.
> > I have a lot invested in gdb's thread support on Linux, and
> > I don't have any way to reproduce the problem you're trying
> > to work around. Could you provide a multi-threaded corefile
> > with corresponding symbol file for folks to experiment with?
>
> I'll do that. A binary is at:
> http://www.them.org/~drow/mtc.tgz
> (The core file is a 23MB sparse file because of the unmapped user
> stacks. Careful where you unpack it.)
Oops -- Daniel, I think you sent the wrong corefile. The one in
the tarball is only 1.4 megabytes, and was generated by "gdb ./lotsa_um
core".
Probably you ran gdb in the directory and it dropped core, overwriting
the corefile that you meant to send. ;-(