From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2703 invoked by alias); 9 Apr 2010 18:44:09 -0000 Received: (qmail 2693 invoked by uid 22791); 9 Apr 2010 18:44:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Apr 2010 18:44:03 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o39IhqN5018197 ; Fri, 9 Apr 2010 20:43:53 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms2.u-strasbg.fr [IPv6:2001:660:2402:d::11]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o39IhqMW023770 ; Fri, 9 Apr 2010 20:43:52 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o39Ihp2X093814 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Fri, 9 Apr 2010 20:43:51 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Pedro Alves'" , References: <001501cad7ff$3950cf30$abf26d90$@muller@ics-cnrs.unistra.fr> <201004091713.19282.pedro@codesourcery.com> In-Reply-To: <201004091713.19282.pedro@codesourcery.com> Subject: RE: [RFC] ARI fixes: Remove NAT_FILE for solaris Date: Fri, 09 Apr 2010 18:44:00 -0000 Message-ID: <000001cad814$9ae9a770$d0bcf650$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00273.txt.bz2 > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Pedro Alves > Envoy=E9=A0: Friday, April 09, 2010 6:13 PM > =C0=A0: gdb-patches@sourceware.org > Cc=A0: Pierre Muller > Objet=A0: Re: [RFC] ARI fixes: Remove NAT_FILE for solaris >=20 > On Friday 09 April 2010 17:10:50, Pierre Muller wrote: > > This patch simply removes i386/nm-i386sol2.h > > > > The only remaining code was > > #ifdef NEW_PROC_API > > #define CANNOT_STEP_HW_WATCHPOINTS > > #endif > > > > I moved that into gdb/configure.ac. > > The most difficult part was to get all the tools > > (in the correct versions) to be able to regenerate > > config.in and configure on a solaris machine. >=20 > This fixes nothing. There's a reason we want to get rid > of macros defined in nm files and used in common code. As is, > a cross debugger hosted on solaris behaves differently from > a cross debugger hosted on all other hosts. I agree, but I thought that doing this step by step would be easier... My big patches take ages to get in, so I prefer to do it bitwise! How could we change this so that this would only trigger if we are debugging native and not some other=20 target? =20=20 Could we change the macro into a test that the current target is native solaris? I don't know enough on gdbarch and tdep structures to have an idea how to write such a test. Advices welcome. Pierre