Path handling bug in GDB included with MingW 3.1.0-1
Eli Zaretskii
eliz@elta.co.il
Tue Oct 7 21:30:00 GMT 2003
> From: "Michael Stather" <michaelstather@nuzi.de>
> Date: Sun, 5 Oct 2003 23:48:35 +0200
>
> g++ -g -o p.exe c:/p/p.cpp -mwindows
> gdb
> break "c:/p/p.cpp:7"
> Run
>
> gdb wont stop at the breakpoint.
> however if I do:
>
> cd c:\m
> g++ -g -o p.exe p.cpp -mwindows
> gdb
> break "p.cpp:7"
> run
>
> it breaks correctly.
Sounds like the MinGW port isn't writing leading directories of the
files into the debug info.
Questions:
What is the default debug info format used by the MinGW port of GCC?
Does it help to use -gstabs+ instead of just -g?
Do you see the leading directories of the source file names if you
run "objdump --debug" on the object files?
More information about the Gdb
mailing list