This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Path problem with dwarf on cygwin
- From: Daniel Jacobowitz <drow at false dot org>
- To: Fabian Cenedese <Cenedese at indel dot ch>
- Cc: gdb at sourceware dot org
- Date: Wed, 29 Nov 2006 10:42:58 -0500
- Subject: Re: Path problem with dwarf on cygwin
- References: <5.2.0.9.1.20061129160827.0189b8d0@NT_SERVER>
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