This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Path handling bug in GDB included with MingW 3.1.0-1
- From: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: <michaelstather at nuzi dot de>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 07 Oct 2003 23:13:28 +0200
- Subject: Re: Path handling bug in GDB included with MingW 3.1.0-1
- References: <002d01c38b8a$6e2d34f0$2101a8c0@kyromaster>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> 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?