From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30950 invoked by alias); 22 Apr 2010 17:46:31 -0000 Received: (qmail 30932 invoked by uid 22791); 22 Apr 2010 17:46:29 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=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; Thu, 22 Apr 2010 17:46:20 +0000 Received: (qmail 6332 invoked from network); 22 Apr 2010 17:46:18 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 22 Apr 2010 17:46:18 -0000 Date: Thu, 22 Apr 2010 17:46:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org, gcc-patches@gcc.gnu.org Subject: Re: [gdb/libiberty] Improve support for cross debugging shared libraries with DOS style pathnames (from Unix hosts) Message-ID: <20100422174610.GA7820@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, gcc-patches@gcc.gnu.org References: <201004221824.27019.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201004221824.27019.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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-04/txt/msg00759.txt.bz2 On Thu, Apr 22, 2010 at 06:24:26PM +0100, Pedro Alves wrote: > (At some point, this patch also included a new user knob > to make source file name comparision flavour (and > mostly s/FILENAME_CMP/source_filename_cmp/, > s/lbasename/source_lbasename throught the sources/debug info > handling parts of GDB.) depend on build file system. That's because > often you stumble on the fact that cross debugging a Windows/SymbianOS > binary _built_ on non-Unix, includes `\' in debug info, and a Unix > GDB can't grok that. I mention this, in case someone would > suggest this new setting should be more general and cover that > case as well. It shouldn't: the concepts are different --- target > paths, vs source/debug info/build paths, and you'll want to be > able to tweak them independently.) I agree with this patch's approach, and with this separation. One important way that source paths are different: a host path is clearly either Unix or DOS. A target path, ditto. A source path, not so much. It is common to have half and half, e.g. if your toolchain was built on Linux but ran on Windows. -- Daniel Jacobowitz CodeSourcery