From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12060 invoked by alias); 31 Jan 2002 21:36:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11938 invoked from network); 31 Jan 2002 21:36:27 -0000 Received: from unknown (HELO saturn.billgatliff.com) (209.251.101.200) by sources.redhat.com with SMTP; 31 Jan 2002 21:36:27 -0000 Received: by saturn.billgatliff.com (Postfix, from userid 500) id 7B6231418BE; Thu, 31 Jan 2002 15:36:27 -0600 (CST) Date: Thu, 31 Jan 2002 13:36:00 -0000 From: "William A. Gatliff" To: "Keith.Walker" Cc: crossgcc@sources.redhat.com, gdb@sources.redhat.com Subject: Re: Patch for arm-linux gdbserver Message-ID: <20020131153627.A3137@saturn.billgatliff.com> Reply-To: bgat@billgatliff.com References: <20020131113611.A2242@saturn.billgatliff.com> <4.1.20020131181535.00b40f00@mhsun1.maidenhead.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4.1.20020131181535.00b40f00@mhsun1.maidenhead.arm.com>; from Keith.Walker@arm.com on Thu, Jan 31, 2002 at 06:50:13PM +0000 X-SW-Source: 2002-01/txt/msg00375.txt.bz2 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 > /gdb/config/arm/xm-linux.h. > create the symbolic link nm.h to point to > /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