Nicole Cook wrote:
> 
> I'm trying to get gdbserver running on a development board, and so I'm
> building a canadian cross where the host will be arm-linux and the build
> machine is i686-pc-linux-gnu.
> 
> low-linux.o: In function `register_addr':
> /src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:570: undefined
> reference to `REGISTER_U_ADDR'
> /src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:570: relocation
> truncated to fit: R_ARM_PC24 REGISTER_U_ADDR
> low-linux.o: In function `initialize_low':
> /src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:771: undefined
> reference to `initialize_arch'
> /src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:771: relocation
> truncated to fit: R_ARM_PC24 initialize_arch
> collect2: ld returned 1 exit status
> make: *** [gdbserver] Error 1
> 
> Is there a known problem with this?  That parse error seems odd to me -
> I haven't touched any of the source code.  The build machine is running
> redhat6.2 (so's the host/target, I think, but a very stripped down
> version prepared by the board maker).
> 

Hi Nicole,

You're the third person who has been interested in this.  Can you try the
attached patches.  These allow gdbserver to configure and build on x86 Linux and
ARM Linux (NetWinder) natively.  I haven't tried a cross compile.  In particular
the patches to tm-linux and low-linux.c should fix the above problems.

Apply the patch, go into the gdb directory and run autoconf.  Configure will
then be regenerated.  You need autoconf 2.13.  If this is a problem let me know
and I will supply a patch for configure as well.

Scott

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org

gdbserver.patch

Reply via email to