From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20323 invoked by alias); 6 Dec 2005 14:26:25 -0000 Received: (qmail 20311 invoked by uid 22791); 6 Dec 2005 14:26:22 -0000 X-Spam-Check-By: sourceware.org Received: from fra-del-04.spheriq.net (HELO fra-del-04.spheriq.net) (195.46.51.100) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Dec 2005 14:26:21 +0000 Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-04.spheriq.net with ESMTP id jB6EQ3jO000330 for ; Tue, 6 Dec 2005 14:26:05 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-02.spheriq.net with ESMTP id jB6EPlqu027024 for ; Tue, 6 Dec 2005 14:26:00 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id jB6EPf3T014599 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 6 Dec 2005 14:25:44 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CCA78DAA7; Tue, 6 Dec 2005 14:23:56 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 69406473A0; Tue, 6 Dec 2005 14:27:04 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E4952759AE; Tue, 6 Dec 2005 14:27:03 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1E99F47372; Tue, 6 Dec 2005 14:27:03 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CHA80213 (AUTH "andrew stubbs"); Tue, 6 Dec 2005 14:23:54 GMT Message-ID: <43959E66.4080303@st.com> Date: Tue, 06 Dec 2005 14:26:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: Joel Brobecker Cc: Eli Zaretskii , Vladimir Prus , gdb@sources.redhat.com Subject: Re: Filename with "./" in breakpoint command References: <200512050953.01350.ghost@cs.msu.su> <20051205185556.GA9808@nevyn.them.org> <20051206045518.GA23837@nevyn.them.org> <20051206115559.GA20190@white> <20051206140113.GA1702@adacore.com> In-Reply-To: <20051206140113.GA1702@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00056.txt.bz2 Joel Brobecker wrote: >>If the user types 'b ./foo.c' then that maps to exactly 1 file. If the >>file can be found, we could set the breakpoint. If the file can not be >>found, then we should give the error that there is no such file. > > > To me, it is natural that ./foo.c means foo.c in the current dir, so > should be expande to $cdir/foo.c. So I like Daniel's suggestion. > It would be useful if GDB would strip ./ from the middle of paths. These things tend to creep in when pasting paths together and nobody removes them because they usually not wrong.