From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8611 invoked by alias); 23 Sep 2004 17:24:21 -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 8604 invoked from network); 23 Sep 2004 17:24:21 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 23 Sep 2004 17:24:21 -0000 Received: by cgf.cx (Postfix, from userid 201) id D3DD01B3D6; Thu, 23 Sep 2004 13:26:24 -0400 (EDT) Date: Thu, 23 Sep 2004 17:24:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com Subject: Re: [RFC] Suggested ways to remove the need for xm-go32.h Message-ID: <20040923172624.GC19595@trixie.casa.cgf.cx> Mail-Followup-To: gdb-patches@sources.redhat.com References: <01c49d82$Blat.v2.2.2$23875ec0@zahav.net.il> <20040923050534.GA11936@trixie.casa.cgf.cx> <41526D73.nailWK21NVX4@mindspring.com> <20040923135852.GB16115@trixie.casa.cgf.cx> <415305F0.nail1U6118H2M@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <415305F0.nail1U6118H2M@mindspring.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-09/txt/msg00373.txt.bz2 On Thu, Sep 23, 2004 at 01:20:48PM -0400, Michael Chastain wrote: >Christopher Faylor wrote: >>I guess the thing that sticks in my craw is the continual need to stand >>on our heads to accommodate that one theoretical system that just might >>not work as required. > >Yes, that bugs me, too. Especially because the "one theoretical >system" is usually some closed source system with a closed source C >compiler for building gcc. Exactly. >> We're talking about making architectural changes which have a simple >> "will this work (yes/no)" criteria. I, as a bad maintainer, would >> certainly respond to queries of that nature. > >The problem is, for a lot of questions, it takes actual work to divine >the answer. For this question it's possible to look in the man pages. >But other questions require people to actually build and run the >software. Questions such as: "can we dump the special sourceware >version of expect and tell everyone to use the stock version", >or "do we need all this AIX-specific cruft in the test suite". That's a good point. For this one particular question, however, it should be easy to poll people. >> I thought that fopen not working would be a pretty obvious problem with >> a pretty obvious fix. > >Ah, I was a bit blind last night. > >If gdb has a wrapper-less fopen: > > fp = fopen (filename, "rb"); > >Then the obvious workaround on host ancient-unknown-unix is >to keep it wrapper-less: > > fp = fopen (filename, "r"); > >I like wrappers better but it's not a big deal to me, wrapper-less >is fine with me. I guess the above assumes that fopen will return NULL and it will be immediately evident what the problem is. Hopefully that, at least, is a good assumption. cgf