I'd like to propose the attached as an extension to the remote protocol.
The code implementing this change is here:
http://sources.redhat.com/ml/gdb-patches/2004-02/msg00000.html
From my original post:
As Amit Kale mentioned in December, to support NPTL gdbserver needs to
look up symbols during remote_wait. The existing qSymbol model assumes
that only at objfile loads (i.e. during td_ta_new) do we need to look up
symbols; NPTL looks up symbols lazily when it needs them, which includes
at the creation of the first child thread. This patch (which, I know,
needs a matching change for the manual) allows qSymbol: queries as a
response to remote_wait, in much the same way as the file I/O protocol.
So here's the manual page and a description of the change. Thoughts?