From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9714 invoked by alias); 15 Aug 2012 08:43:21 -0000 Received: (qmail 9701 invoked by uid 22791); 15 Aug 2012 08:43:19 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Aug 2012 08:43:03 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T1ZBt-0005Qp-OY for cygwin@cygwin.com; Wed, 15 Aug 2012 10:43:01 +0200 Received: from c-83-233-120-68.cust.bredband2.com ([83.233.120.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Aug 2012 10:43:01 +0200 Received: from info by c-83-233-120-68.cust.bredband2.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Aug 2012 10:43:01 +0200 To: cygwin@cygwin.com From: =?iso-8859-1?Q?David_Lindstr=F6m?= Subject: Re: Cygwin GCC and debug info source file paths Date: Wed, 15 Aug 2012 08:54:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit In-Reply-To: Cc: gcc-help@gcc.gnu.org X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-08/txt/msg00345.txt.bz2 Thanks, this was pretty much exactly what I was looking for, but it turned out the builds at gnuarm.org are so outdated that the option does not exist (-fdebug-prefix-map=/cygdrive/c/=C:/ resulted in an error at least). I managed to create a really dirty workaround for now which was to create C:\cygdrive and then symlink/mklink 'c' => 'C:\' which appears to work but is extremely ugly. Still open for suggestions. Mvh David Lindström "Ian Lance Taylor" wrote in message news:CAKOQZ8wXhCTrMkm6yEBW1eysQO5jhaD+3x6AzHN=hTeBCSLueQ@mail.gmail.com... On Tue, Aug 14, 2012 at 11:13 AM, David Lindström wrote: > Hi, I didn't know where to put this. I'm trying to use a cygwin build of > GCC > for arm (binaries from gnuarm.com). When I build a simple dummy > application > just doing some matrix multiplications in a loop, it creates a nice > executable file with debug info, but the path to the source file is a > cygwin > path which is incompatible with the debugging tool I'm trying to use. I'm > wondering if there's a way to generate the exe with relative paths to the > source files, alternatively to use windows paths? > > The tool is Trace32 from Lauterbach, currently experementing with the arm > simulator from the website. You may be able to use GCC's -fdebug-prefix-map option. Ian -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple