From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3067 invoked by alias); 7 Oct 2003 21:30:05 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3032 invoked from network); 7 Oct 2003 21:30:04 -0000 Received: from unknown (HELO bilbo.inter.net.il) (192.114.186.18) by sources.redhat.com with SMTP; 7 Oct 2003 21:30:04 -0000 Received: from zaretski ([80.230.148.47]) by bilbo.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id BPD69124; Tue, 7 Oct 2003 23:17:21 +0200 (IST) Date: Tue, 07 Oct 2003 21:30:00 -0000 From: "Eli Zaretskii" To: Message-Id: <1438-Tue07Oct2003231328+0200-eliz@elta.co.il> CC: gdb@sources.redhat.com In-reply-to: <002d01c38b8a$6e2d34f0$2101a8c0@kyromaster> (michaelstather@nuzi.de) Subject: Re: Path handling bug in GDB included with MingW 3.1.0-1 Reply-to: Eli Zaretskii References: <002d01c38b8a$6e2d34f0$2101a8c0@kyromaster> X-SW-Source: 2003-10/txt/msg00124.txt.bz2 > From: "Michael Stather" > 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?