From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29160 invoked by alias); 29 Nov 2006 15:43:08 -0000 Received: (qmail 29145 invoked by uid 22791); 29 Nov 2006 15:43:08 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 29 Nov 2006 15:43:02 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GpRaM-0000Xr-NZ; Wed, 29 Nov 2006 10:42:58 -0500 Date: Wed, 29 Nov 2006 15:43:00 -0000 From: Daniel Jacobowitz To: Fabian Cenedese Cc: gdb@sourceware.org Subject: Re: Path problem with dwarf on cygwin Message-ID: <20061129154258.GA1999@nevyn.them.org> Mail-Followup-To: Fabian Cenedese , gdb@sourceware.org References: <5.2.0.9.1.20061129160827.0189b8d0@NT_SERVER> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20061129160827.0189b8d0@NT_SERVER> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00226.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery