shared library support hookin the remote.c
Stephen & Linda Smith
ischis2@cox.net
Wed Jul 14 18:44:00 GMT 2004
Andrew Cagney wrote:
>
> So each time the inferior stops, GDB will need to re-poll for shlib
> changes?
That is the way I currently have it set up.
There is one thing I don't understand about the F packet. How does the
inferior know that it is OK to send the packet. From everything that I
have read. Comunication is initiated by GDB and answered by the
inferior. I didn't know that the stub could initiate a packet. If so, Do
I just tack on the F packet information to the end of a currently
generated packet?
This is the reason I was polling. Otherwise I prefer to not poll.
>
> Can the stub instead generate a packet, very like the recently added F
> (File I/O) indicating that the link map changed (and what)?
I think I have answered this by answering the preceding question.
>
> The other is to have a custom xxx-shlib hooked up to inferior stopped
> that queries for the stuff you describe. It could probably be tunneled
> as a TARGET_OBJECT_KOD packet.
>
If I implement the F packet would that get rid if the need for a xxx-shlib?
More information about the Gdb
mailing list