From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24070 invoked by alias); 12 Aug 2011 17:17:52 -0000 Received: (qmail 24054 invoked by uid 22791); 12 Aug 2011 17:17:51 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Aug 2011 17:17:30 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LPT00800RVZ1K00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Fri, 12 Aug 2011 20:17:16 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.94.185]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPT005K9S0RPTS0@a-mtaout22.012.net.il>; Fri, 12 Aug 2011 20:17:16 +0300 (IDT) Date: Fri, 12 Aug 2011 17:17:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] Fix problems related to Mingw/DJGPP file names containing colons In-reply-to: <004901cc5907$85006320$8f012960$%muller@ics-cnrs.unistra.fr> To: Pierre Muller Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83vcu2wnvj.fsf@gnu.org> References: <004901cc5907$85006320$8f012960$%muller@ics-cnrs.unistra.fr> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00255.txt.bz2 > From: "Pierre Muller" > Date: Fri, 12 Aug 2011 17:50:11 +0200 > > Using current CVS source, > I am unable to handle files having Dos style > directory specifications inside the stabs debugging information > (but I don't think that this is stabs specific). > Release 7.3 has the same problem... > > The program test.exe below has been compiled with Free Pascal > for win32 target (more or less mingw). > When I try to insert a break point at a line of current file, > the addr_string computed is "e:/pas/trunk/fpcsrc/ide/test.pas:166". > But locate_first_half function stops at the first colon > and GDB complains because file "e" is not found. > > I first tried to add double-quotes around the file name, > but this was not enough... I suspect that the other changes > below that I had to add are just errors in the current implementation... > See below for submitted patch. > > Nevertheless, this implementation will probably fail miserably for > file names containing double-quotes, not sure if this is allowed > on some OS's or FileSystems... > > Comments most welcome Thanks for working on this, but I don't like the idea of quoting file names internally just to work around this problem. I think we need to teach linespec about DOS-style file names instead.