Cross-compiling GDB/GDBSERVER
Daniel Jacobowitz
drow@false.org
Tue Jan 16 16:51:00 GMT 2007
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.
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