From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4740 invoked by alias); 7 Mar 2011 19:07:56 -0000 Received: (qmail 4732 invoked by uid 22791); 7 Mar 2011 19:07:55 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Mar 2011 19:07:47 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p27J7EG5024067 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 7 Mar 2011 14:07:14 -0500 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p27J7Cdf006148 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Mar 2011 14:07:14 -0500 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p27J7BIO001393; Mon, 7 Mar 2011 20:07:11 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p27J79d6001387; Mon, 7 Mar 2011 20:07:09 +0100 Date: Mon, 07 Mar 2011 19:28:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org, Joel Brobecker , Eli Zaretskii , Kai Tietz Subject: Re: [patch gdb]: Fix some DOS-path related issues in gdb Message-ID: <20110307190709.GA27062@host1.jankratochvil.net> References: <20110303145832.GY30306@adacore.com> <201103031532.19941.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103031532.19941.pedro@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-03/txt/msg00482.txt.bz2 On Thu, 03 Mar 2011 16:32:19 +0100, Pedro Alves wrote: > On Thursday 03 March 2011 14:58:32, Joel Brobecker wrote: > > These would still be pertinent in the case of cross debugging, no? > > If the files were cross-compiled on Windows, the debug info would > > contain file paths that follow the Windows convention... > > And then if you try to debug that on GNU/Linux, things still > won't work, because filename_cmp changes behavior depending on host, > not target or context. That's why I believe there should be a clear > distinction between what's a source path, and a host path. I think > Kai's bfd changes affect host paths, so they're fine. (haven't really > checked, but that's what I imagine). For source paths, I'd rather > have this patch resurected... > > debug info is not transferable between hosts. As it (in most cases) contains absolute filenames it cannot be transferred even between two unices. For this purpose Fedora (+other distros different tools) provides /usr/lib/rpm/debugedit for .debug filenames editing into a generalized form. Any patches of GDB for target-specific filenames are not on the right place as other utilities (such as binutils `objdump -dS' etc.) still remain broken. As the post-link editing has a performance hit there may be some filename adjustments provided in the producer (gcc) but IMO not in all the consumers. As /usr/lib/rpm/debugedit (compilable as a general non-rpm utility) has some limitations (as it does in-place filenames overwriting) with recent elfutils support for DWARF reading+writing such a utility should be simple I hope. So the host-only scope of this patchset I find right. This is not a review of its contents, just a statement on its scope. Thanks, Jan