From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32293 invoked by alias); 17 Dec 2010 19:44:05 -0000 Received: (qmail 32280 invoked by uid 22791); 17 Dec 2010 19:44:04 -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 19:44:01 +0000 Received: (qmail 3152 invoked from network); 17 Dec 2010 19:44:00 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Dec 2010 19:44:00 -0000 From: Pedro Alves To: Eli Zaretskii Subject: Re: proposal: substitute-path handles foreign dir separators Date: Fri, 17 Dec 2010 19:44:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.33-29-realtime; KDE/4.4.5; x86_64; ; ) Cc: gdb-patches@sourceware.org, zulliger@indel.ch References: <4D0B7125.2010203@indel.ch> <201012171750.36936.pedro@codesourcery.com> <83vd2sfbkl.fsf@gnu.org> In-Reply-To: <83vd2sfbkl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012171943.56895.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/msg00346.txt.bz2 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. -- Pedro Alves