Having seen your recent posting regarding gdb, I am
wondering if you could help me. I downloaded gdb from
your web site, and tried compiling gdb-4.17 for a
I got gdb to compile OK, but I couldn't get gdbserver
to compile. My problems seem similar to the problems
Michael Shmulevich had.
I couldn't find any documentation on what order to
apply patches, or which patches to apply, so I patched
with the following in the following order :
I configured gdb with :
It configured OK and then built OK.
Then I configured gdbserver with :
And then tried compiling.This compiled so far and then
gave numerous undefined references to functions such
as create_inferior,mywait, myresume etc which are
defined in low-linux.c.
So following the previous thread on gdbserver from
Micheal Shmulevich, I decided to try :
--target=mipsel-linux-elf This gave the following
gdbserver/configure.in:host_cpu is mipsel, target cpu
Linked "xm.h" to "./../config/mips/xm-linux.h".
Linked "tm.h" to "./../config/mips-tm-embedl.h".
Linked "nm.h" to "./../config/nm-empty.h".
I then build with : make CC=mipsel-linux-gcc.
The first file it tries to compile is low-linux.c and
immediately errors with :
low-linux.c:In function 'fetch_register':
low-linux.c:248: 'PT_READ_U' undeclared (first use in
Looking at the source I believe PT_READ_U is undefined
because the link from nm.h to nm-linux.h is not made,
Michael made the same observation.
>From what I have written can you tell me where I am
going wrong ?
Any help would be greatly appreciated
Michael: If you have any tips on how to get gdbserver
working they will be warmly welcome.
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices