This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Path handling bug in GDB included with MingW 3.1.0-1


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]