This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Shared libraries and the solib interface
On Oct 2, 1:50pm, Stephen P. Smith wrote:
> Kevin Buettner wrote:
>
> >>And a second question is how does a
> >>generic stub inform the GDB (workstation side) app which shared library
> >>got loaded and where or is this not necessary?
> >
> >For svr4- and sunos-like shared library support, this information is
> >available by examining the target's memory.
> >
> It is available. I guess I didn't explain well enough.
Oh!
> Given that I know where/what is loaded on the target machine which is
> running gdbserver, how do I communicate to the workstation running gdb
> to load the symbol file and the addresses of the various sections?
That's already handled by the existing (generic) shared library code.
See solib.c.
Kevin