From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13687 invoked by alias); 17 Dec 2010 20:11:13 -0000 Received: (qmail 13674 invoked by uid 22791); 17 Dec 2010 20:11:10 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Dec 2010 20:11:06 +0000 Received: (qmail 8464 invoked from network); 17 Dec 2010 20:11:04 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Dec 2010 20:11:04 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: proposal: substitute-path handles foreign dir separators Date: Fri, 17 Dec 2010 20:11:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.33-29-realtime; KDE/4.4.5; x86_64; ; ) Cc: Eli Zaretskii , zulliger@indel.ch References: <4D0B7125.2010203@indel.ch> <83vd2sfbkl.fsf@gnu.org> <201012171943.56895.pedro@codesourcery.com> In-Reply-To: <201012171943.56895.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012172011.01075.pedro@codesourcery.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: 2010-12/txt/msg00347.txt.bz2 On Friday 17 December 2010 19:43:56, Pedro Alves wrote: > On Friday 17 December 2010 19:23:22, Eli Zaretskii wrote: > > Thanks. I have 2 comments: > > > > . if we are going to add this, it needs documentation > > For sure. I only posted what I had because the subject came up, not > because I considered it completely finished. > > > . why only source file names? the issue is relevant to any file name > > Can you give an example? My thinking is/was we should keep target paths, host > paths and source paths separate worlds. Target path comparisions are handled > with "set/show target-file-system-kind". Host paths should be compared with > other host paths using FILENAME_CMP, which uses the appropriate native > host compare function. The source paths setting is for the case of > e.g., a arm-linux program that was compiled on a Windows machine, > and is later debugged on an x86-linux host gdb (against a arm-linux > gdbserver). You want gdb to consider the target filesystem of unix > kind, but, you want source path comparisions with paths embedded in > debug info to be permissive by using dos style path comparisons. Here's the link to the previous short discussion on this, for the archives. Sorry, should have included it earlier: -- Pedro Alves