This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Patch for arm-linux gdbserver
- From: "William A. Gatliff" <bgat at billgatliff dot com>
- To: "Keith.Walker" <Keith dot Walker at arm dot com>
- Cc: crossgcc at sources dot redhat dot com, gdb at sources dot redhat dot com
- Date: Thu, 31 Jan 2002 15:36:27 -0600
- Subject: Re: Patch for arm-linux gdbserver
- References: <20020131113611.A2242@saturn.billgatliff.com> <4.1.20020131181535.00b40f00@mhsun1.maidenhead.arm.com>
- Reply-to: bgat at billgatliff dot com
Keith:
[root@venus gdbserver]# make
arm-linux-gcc -c -g -I/home/bgat/Intrinsyc/include -I. -I.. -I../../gdb/gdbserver -I../../gdb/gdbserver/.. -I../../gdb/gdbserver/../config -I../../gdb/gdbserver/../../include -I../../bfd -I../../gdb/gdbserver/../../bfd -DGDBSERVER ../../gdb/gdbserver/low-linux.c
../../gdb/gdbserver/low-linux.c:42: sys/reg.h: No such file or directory
make: *** [low-linux.o] Error 1
[root@venus gdbserver]# find ~/Intrinsyc/ -name reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-mips/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-alpha/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-sparc/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-sparc64/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-mips64/reg.h
I'm using a prebuilt toolchain from Intrinsyc. I'm thinking there's
something wrong about it, but I can't quite put my finger on it...
Where is your reg.h?
What versions of arm-linux tools are you using? I may just have to
start from scratch here...
b.g.
On Thu, Jan 31, 2002 at 06:50:13PM +0000, Keith.Walker wrote:
> >Regarding this:
> >
> >http://sources.redhat.com/ml/gdb-patches/2001-12/msg00137.html
> >
> >
> >Do you have a quick recipe for building gdbserver?
> >
> >I have an arm-linux toolchain installed, but I'm having to do a lot of
> >editing in the Makefile for gdbserver after configuring, to get my
> >search paths right. I haven't had a successful build yet.
> >
> >This makes me suspicious that I'm doing something wrong...
>
> What host & target are you specifying when building gdb?
>
> If you are just building gdb to run on your (Intel?) linux box but targeted
> at ARM (i.e. you have just built gdb using configure --target=arm-linux
> ......) then try the following ......
>
> In the gdbserver build directory:
>
> change the symbolic link xm.h to point to
> <SRCDIR>/gdb/config/arm/xm-linux.h.
> create the symbolic link nm.h to point to
> <SRCDIR>/gdb/config/arm/nm-linux.h.
> edit ../config.h and change the line:
> /* #undef GDB_NM_FILE */
> to
> #define GDB_NM_FILE config/arm/tm-linux.h
>
> set the environment variable CC to point to your arm-linux compiler, e.g.
> CC=arm-linux-gcc
> export CC
> and finally run make.
>
> This is a bit of a hack, but it saves you having to cross-build all of gdb
> just to get gdbserver built for your target system.
>
>
> Keith
> Keith Walker keith.walker@arm.com Tel:+44 (1628) 427732
> ARM Ltd http://www.arm.com
>
--
Bill Gatliff
bgat@billgatliff.com