From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28639 invoked by alias); 16 May 2008 08:19:02 -0000 Received: (qmail 28628 invoked by uid 22791); 16 May 2008 08:19:01 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout4.012.net.il (HELO mtaout4.012.net.il) (84.95.2.10) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 May 2008 08:18:41 +0000 Received: from HOME-C4E4A596F7 ([83.130.255.47]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K0Y006KDD2EP902@i_mtaout4.012.net.il> for gdb-patches@sources.redhat.com; Fri, 16 May 2008 11:32:39 +0300 (IDT) Date: Fri, 16 May 2008 15:27:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] new substitute path when loading feature In-reply-to: <482C990A.60500@qnx.com> X-012-Sender: halo1@inter.net.il To: Aleksandar Ristovski Cc: drow@false.org, gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: 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> <482C91AA.30903@qnx.com> <20080515194418.GA17618@caradoc.them.org> <482C990A.60500@qnx.com> 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/msg00498.txt.bz2 > Date: Thu, 15 May 2008 16:11:54 -0400 > From: Aleksandar Ristovski > CC: Daniel Jacobowitz , gdb-patches@sources.redhat.com, > Eli Zaretskii > > @Eli: Your 'if' wouldn't work as expected for common posix-style paths (it would default to case insensitive comparison which is unacceptable for posix paths) I think you misunderstood what I was suggesting, but we don't have to argue about that, as long as you agree with Daniel's solution (because I was in effect suggesting the same thing). > However, I'm not sure why you didn't like my original rewrite at readin... all the user would have to do for mixed path binaries is: > > set substitute-path C: / > (which would make iberty's IS_ABSOLUTE_PATH work on posix-ly configured gdbs) > > and this could be done by default in main :-) I think this suggestion is so subtle that no one who has such a problem would ever be able to guess that substitute-path is the solution. In other words, when a user has problem with DOS-style file names, she will look for a solution whose name has something in common with "DOS" and "file name", and substitute-path doesn't qualify. A good UI should have high mnemonic significance to be helpful.