From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3175 invoked by alias); 15 May 2008 19:41:01 -0000 Received: (qmail 3160 invoked by uid 22791); 15 May 2008 19:41:00 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 May 2008 19:40:40 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JwjJb-0006cP-OD for gdb-patches@sources.redhat.com; Thu, 15 May 2008 19:40:35 +0000 Received: from entropy.qnx.com ([209.226.137.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 19:40:35 +0000 Received: from aristovski by entropy.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 19:40:35 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: Re: [RFC] new substitute path when loading feature Date: Fri, 16 May 2008 08:19:00 -0000 Message-ID: <482C91AA.30903@qnx.com> References: <20080513190818.GA13776@caradoc.them.org> <4829E7DA.3010606@qnx.com> <20080513192041.GA14593@caradoc.them.org> <20080515160551.GA24101@caradoc.them.org> <20080515191642.GA15892@caradoc.them.org> <20080515193513.GA17156@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Eli Zaretskii , Daniel Jacobowitz User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <20080515193513.GA17156@caradoc.them.org> 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: 2008-05/txt/msg00489.txt.bz2 Message-ID: <20080516081900.84oPBq3cS-g8bqjvaNd5GBfroGa82u9UGOntovqW-t4@z> Daniel Jacobowitz wrote: > On Thu, May 15, 2008 at 10:28:10PM +0300, Eli Zaretskii wrote: >>> Date: Thu, 15 May 2008 15:16:42 -0400 >>> From: Daniel Jacobowitz >>> Cc: aristovski@qnx.com, gdb-patches@sources.redhat.com >>> >>> I'm happy to add the band-aid; do you have an idea of what to call it? >>> set strict-filenames? >> How about "set support-dos-filenames" (on by default)? > > I like that better, thanks! I'll work on the option (not right now). > You will probably want this wrapped in an if. In fact, I don't see how will it work properly with only one flag - we probably don't want to do case-insensitive compare by default, but we do need to compare case insensitive for dos-like file system. #ifndef HAVE_DOS_BASED_FILE_SYSTEM + /* When debugging on a POSIX host, assume that each filename was + recorded with a single consistent capitalization during + compilation. Source trees are too likely to contain both + main.c and Main.c. */ + if (*lhs == *rhs) + continue; +#else + if (tolower (*lhs) == tolower (*rhs)) + continue; +#endif +