This is the mail archive of the
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> <email@example.com>
- Reply-to: bgat at billgatliff dot com
[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
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...
On Thu, Jan 31, 2002 at 06:50:13PM +0000, Keith.Walker wrote:
> >Regarding this:
> >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
> create the symbolic link nm.h to point to
> edit ../config.h and change the line:
> /* #undef GDB_NM_FILE */
> #define GDB_NM_FILE config/arm/tm-linux.h
> set the environment variable CC to point to your arm-linux compiler, e.g.
> 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 Walker firstname.lastname@example.org Tel:+44 (1628) 427732
> ARM Ltd http://www.arm.com