This is the mail archive of the 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]

Re: Patch for arm-linux gdbserver


[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
> <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		Tel:+44 (1628) 427732
> ARM Ltd

Bill Gatliff

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]