This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |