Cross-compiling GDB/GDBSERVER
Itzhak Ben-Akiva
Itzhak.Ben-Akiva@computer.org
Tue Jan 16 19:21:00 GMT 2007
Hi Daniel,
Thanks, I have already solved this problem.
On 1/16/07, Daniel Jacobowitz <drow@false.org> wrote:
> On Tue, Jan 16, 2007 at 10:15:27AM +0200, Itzhak Ben-Akiva wrote:
> > However, when I try to connect to the gdbserver, I get the message I
> > post below. gdb is trying to find the libraries in the wrong places
> > instead of the right one, i.e., the toolchain build directory. What am
> > I missing in the compilation? Should I set CFLAGS and LD_FLAGS to the
> > path of the toolchain build directory?
>
> You need to either use --with-sysroot when building gdb, set
> solib-absolute-prefix, or "set sysroot" if you're using GDB HEAD.
That's exactly what I did. I found on the Net Dan Kegel's "how to"
http://www.kegel.com/linux/gdbserver.txt. It helped me a lot.
Thanks,
Itzhak
P.S.: I'm studying GDB Internals and the mails and patches regarding
to Reverse Debugging Project. I haven't forgot it.
> I added a section about this common pitfall to the manual a few weeks
> ago.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
More information about the Gdb
mailing list