Patch for arm-linux gdbserver

Daniel Jacobowitz drow@mvista.com
Mon Apr 1 00:00:00 GMT 2002


On Thu, Jan 31, 2002 at 03:36:27PM -0600, William A. Gatliff wrote:
> 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...

ARM should not have sys/reg.h.  That means you mis-ran configure.

You can't build gdbserver inside a cross-gdb tree.  It has to be a
_target_ _native_ gdb tree (i.e. --host).

I don't think ARM gdbserver builds at the moment, though.  If it does
I'll be pleasantly surprised.

What Keith said about configury won't work.  However, you don't need to
run make in the gdb dir, just configure.


-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list