List Info

Thread: Path problem with dwarf on cygwin




Path problem with dwarf on cygwin
user name
2006-11-29 15:42:58
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
Path problem with dwarf on cygwin
user name
2006-11-29 16:11:02
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


Path problem with dwarf on cygwin
user name
2006-11-29 18:39:11
> Date: Wed, 29 Nov 2006 10:42:58 -0500
> From: Daniel Jacobowitz <drowfalse.org>
> Cc: gdbsourceware.org
> 
> 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.

Why ``nasty''?  Isn't it enough to modify the FILENAME_CMP
macro, and
be done with that?  If not, what else need to be changed,
and why?
Path problem with dwarf on cygwin
user name
2006-11-29 19:05:06
On Wed, Nov 29, 2006 at 08:39:11PM +0200, Eli Zaretskii
wrote:
> > Date: Wed, 29 Nov 2006 10:42:58 -0500
> > From: Daniel Jacobowitz <drowfalse.org>
> > Cc: gdbsourceware.org
> > 
> > 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.
> 
> Why ``nasty''?  Isn't it enough to modify the
FILENAME_CMP macro, and
> be done with that?  If not, what else need to be
changed, and why?

I didn't say that the proper solution was nasty, just that
my first
version of the code was   It won't
be hard to clean up, if I can
find the time.

-- 
Daniel Jacobowitz
CodeSourcery
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )