From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29181 invoked by alias); 7 Apr 2010 06:19:44 -0000 Received: (qmail 29162 invoked by uid 22791); 7 Apr 2010 06:19:43 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Apr 2010 06:19:39 +0000 Received: by vws14 with SMTP id 14so399364vws.0 for ; Tue, 06 Apr 2010 23:19:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.44.198 with HTTP; Tue, 6 Apr 2010 23:19:36 -0700 (PDT) In-Reply-To: <83y6h0vtj6.fsf@gnu.org> References: <002a01cad517$d36eab90$7a4c02b0$%muller@ics-cnrs.unistra.fr> <001801cad593$8e70daf0$ab5290d0$%muller@ics-cnrs.unistra.fr> <83iq84xyoa.fsf@gnu.org> <83y6h0vtj6.fsf@gnu.org> Date: Wed, 07 Apr 2010 06:19:00 -0000 Received: by 10.220.116.129 with SMTP id m1mr4154778vcq.127.1270621177127; Tue, 06 Apr 2010 23:19:37 -0700 (PDT) Message-ID: Subject: Re: [RFC] Fix for Go32-v2 native woes From: "H.J. Lu" To: Eli Zaretskii Cc: pierre.muller@ics-cnrs.unistra.fr, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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/msg00120.txt.bz2 On Tue, Apr 6, 2010 at 8:19 PM, Eli Zaretskii wrote: >> Date: Tue, 06 Apr 2010 20:45:25 +0300 >> From: Eli Zaretskii >> Cc: gdb-patches@sourceware.org >> >> > From: "Pierre Muller" >> > Date: Tue, 6 Apr 2010 16:15:05 +0200 >> > >> > =A0 I finally managed to find a fix, but it is not straightforward: >> > =A0 I had to add a new xml file in features/i386 directory >> > specific for go32v2 target, that does not read i386-sse.xml. >> > =A0 I had to adapt the code in i386-tdep.c to support >> > missing feature_vector and to set tdesc to >> > tdesc_i386_go32v2 instead of tdesc_i386 when go32v2 >> > osabi was detected. >> > >> > =A0 This allows me to use CVS GDB on DJGPP again. >> > >> > =A0 I checked with a testsuite run on gcc-farm that nothing changed >> > for at least that other target (amd64-linux). >> > >> > =A0 Similar fixes might be required for other 'old' >> > i386 targets that do not support SSE registers. >> > >> > =A0 Comments welcome as usual! >> >> Thanks. =A0But I really hope that a much more elegant solution could be >> found. =A0A general layer of code such as i386-tdep.c should not include >> any code that is specific to certain targets. > > Btw, I think this solution cannot be acceptable for one more reason: > GDB should work even without libexpat linked in, and then XML files > cannot be read. > > Can you see what happens with this problem in a GDB build without > libexpat? =A0(Sorry, I won't be able to do that myself in the near > future.) > I have a followup patch on top of AVX gdb to support i386 without SSE. I will submit it after AVX patches are checked in. --=20 H.J.