This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] multi-process gdb (forks, checkpoints)
On Tue, Nov 29, 2005 at 05:58:43PM -0800, Michael Snyder wrote:
> Jim Blandy wrote:
> >What happens if we fork, and then one of the forks unloads or loads a
> >shared library?
> >
> >We're really crippled by our symtab data structures.
>
> Hmmm... unload would be the bigger problem, I suppose.
Yes. Eventually we just need to improve the symtab interface enough to
permit this. I think it's not an unreachable goal. The user interface
is going to get thornier and thornier, though.
> I'd look at it this way -- this is really a subset of "debugging
> separate processes". The subset is, processes that share the same
> symbol set. What you suggest is crowding that boundary. ;-)
>
> We know that the set of programs that can be debugged this way
> is prescribed. Can't do multi-threaded programs, for instance.
Right - we can't duplicate them - we could more or less fake it, but
they know too much about their TIDs, and their TLS, et cetera.
--
Daniel Jacobowitz
CodeSourcery, LLC