From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5254 invoked by alias); 3 Oct 2002 07:22:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5168 invoked from network); 3 Oct 2002 07:22:56 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.250) by sources.redhat.com with SMTP; 3 Oct 2002 07:22:56 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (Postfix) with ESMTP id 0E385664; Thu, 3 Oct 2002 09:24:07 +0200 (CEST) Message-Id: <4.2.0.58.20021003085755.00a4dfd0@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr Date: Thu, 03 Oct 2002 00:22:00 -0000 To: Jason R Thorpe From: Pierre Muller Subject: Re: [RFC/RFA]Fix cross build of m68k netbsd target Cc: gdb-patches@sources.redhat.com In-Reply-To: <20021002091235.L11524@dr-evil.shagadelic.org> References: <4.2.0.58.20021002152937.01418ad0@ics.u-strasbg.fr> <4.2.0.58.20021002152937.01418ad0@ics.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-SW-Source: 2002-10/txt/msg00104.txt.bz2 At 18:12 02/10/2002 , Jason R Thorpe a écrit: >On Wed, Oct 02, 2002 at 04:55:31PM +0200, Pierre Muller wrote: > > > tm-nbsd.h in config/m68k directory > > contains > > #include "" > > and > > #include sys/param.h" > > > > This is totally wrong and should be refused in all cases, > > as it totally prevents correct cross-compilation > > to that target. > > > > I thus propose the following patch, > > which enables me to cross-compile > > with target m68k-uunknown-netbsd. > >Yes, now that the m68k is multiarch'd, I need to sit down an pay >some attention to the m68k-netbsd target(s). > >Will you please file a GDB bug report on this issue? > > > * config/m68k/tm-nbsd.h: > > (sys/param.h, machine/vmparam.h): Remove wrong includes. > > (PGSHIFT, HIGHPAGES,NBPG, USRSTACK): New macros, > > taken from a native m68k netbsd machine. > >I'm not inclined to check this in, because it won't really work >properly for all of the netbsd m68k platforms. (out of curiosity, >which one are you using?) I found these values on a 1.6 m68k netbsd version. Did these value change in version history? This should be possible to inversigate with the cvsweb server on www.netbsd.org.... but when I try to to use the diff tool, it does not work correctly... As you are probably maintainer of this tool, maybe you can fix this. The problem is that I can't give you the sources where I found the different macros because I lost access to the corresponding machine. Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99