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
> This only works if you're debugging on a very similar host to the one
> the core was dumped on. If you've got, say, a glibc 2.1.3 host and are
> looking at a glibc 2.2.3 core... well, you can provide target libraries
> and make GDB use those, but there's no way to provide a cross
> libthread_db.
Yep.
> Are we really comfortable with that? This'll probably cause GDB to
> misbehave in arbitrarily unpredictable ways in that circumstance. And
> we've no way to detect it that I can see.
By misbehave I guess you mean exibit non-deterministic behavour. Using
the current source base, either the GDB build is native and thread-db is
included (and full thread support in core files is available) XOR GDB is
a cross, thread-db is not included, and full thread support of core
files is not available. I think this is pretty deterministic.
As far as I know, these limitations are exactly the same as for GDB and
shared libraries. It just so happens that, for shared libraries, things
are a little (lot) further down the road of getting the technical
problems fixed.
Andrew