This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: arm gdbserver and shared object function resolution
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "Kevin \"Squail\" Endres" <kevine at wildseed dot com>, gdb at sources dot redhat dot com
- Date: Mon, 29 Apr 2002 17:14:00 -0700
- Subject: Re: arm gdbserver and shared object function resolution
- References: <43CB1396676FD4119F03001083FD2994F5F17C@neptune.kirkland.local>
On Apr 29, 4:34pm, Kevin \Squail\ Endres wrote:
> note: I can now load the symbols from the file on the host (and thus resolve
> the function to an address and set a breakpoint). However - if i target the
> remote target after setting the breakpoint i get the following error:
>
> warning: shared library handler failed to enable breakpoint. is the issue
> with the current cross target gdb or is it with gdbserver?
It is critical that GDB be able to find your target's dynamic linker
and load its symbols. To do this, you normally use
``set solib-absolute-prefix'' to tell gdb where to find the sys-root
for the target's libraries. If you're not doing this, then perhaps
that's your problem?
It is also important for the libraries in the sys-root location on
the host to be exactly the same as those found on the target. All
kinds of strange things can happen if this is not the case.
Kevin