From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20672 invoked by alias); 29 Nov 2006 16:12:03 -0000 Received: (qmail 20662 invoked by uid 22791); 29 Nov 2006 16:12:03 -0000 X-Spam-Check-By: sourceware.org Received: from mxout.hispeed.ch (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 29 Nov 2006 16:11:54 +0000 Received: from indel.ch (84-73-11-232.dclient.hispeed.ch [84.73.11.232]) by smtp.hispeed.ch (8.12.11.20060308/8.12.6/taifun-1.0) with SMTP id kATGBoRP005617 for ; Wed, 29 Nov 2006 17:11:50 +0100 Received: from FABI.indel.ch [192.168.1.91] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Wed, 29 Nov 2006 17:11:45 +0100 Message-Id: <5.2.0.9.1.20061129170904.0187d850@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Wed, 29 Nov 2006 16:12:00 -0000 To: gdb@sourceware.org From: Fabian Cenedese Subject: Re: Path problem with dwarf on cygwin In-Reply-To: <20061129154258.GA1999@nevyn.them.org> References: <5.2.0.9.1.20061129160827.0189b8d0@NT_SERVER> <5.2.0.9.1.20061129160827.0189b8d0@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sourceware.org X-Return-Path: cenedese@indel.ch X-Virus-Status: Clean X-DCC-spamcheck-02.tornado.cablecom.ch-Metrics: smtp-03.tornado.cablecom.ch 1378; Body=1 Fuz1=1 Fuz2=1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00229.txt.bz2 At 10:42 29.11.2006 -0500, Daniel Jacobowitz wrote: >On Wed, Nov 29, 2006 at 04:38:41PM +0100, Fabian Cenedese wrote: >> How can this happen? Is this a problem of gcc or gdb? As I call gcc directly, >> not from inside the cygwin shell, I give all paths with backslashes. So why is >> there one with a forward slash? >> >> Is there a possibility to tell gdb that these are the same files and not >> create two symtabs? Or maybe a flag for configure of gcc/gdb? Something >> like the textmode.o module for cygwin compiled programs. > >I said a couple of weeks ago that I had a really nasty patch for this >problem, but never got around to cleaning it up. You've built a Cygwin >GDB, therefore when it needs to construct a path, it uses forward >slashes. Yet your debugging info matches what you gave the compiler, >i.e. has backwards slashes. The debugger needs to be taught smarter >filename comparison. But apparently this only affects dwarf info, is that correct? Can I work around this by supplying pathes with all forward slashes? Thanks bye Fabi