From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26145 invoked by alias); 3 Dec 2005 12:58:01 -0000 Received: (qmail 26134 invoked by uid 22791); 3 Dec 2005 12:58:00 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 Dec 2005 12:57:58 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EiWwE-0001v9-LV for gdb@sources.redhat.com; Sat, 03 Dec 2005 13:56:26 +0100 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Dec 2005 13:56:26 +0100 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Dec 2005 13:56:26 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Filename with "./" in breakpoint command Date: Sat, 03 Dec 2005 12:58:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 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/msg00035.txt.bz2 Hi, I just got the following gdb session: $ ~/build/gdb-cvs/gdb/gdb tracepoints GNU gdb 6.4.50.20051121-cvs (gdb) b ./tracepoints.cpp:12 No source file named ./tracepoints.cpp. Breakpoint 1 (./tracepoints.cpp:12) pending. (gdb) b tracepoints.cpp:12 Breakpoint 2 at 0x80483c4: file tracepoints.cpp, line 12. (gdb) quit $ ls tracepoints.cpp tracepoints.cpp It looks like leading "./" in file name confuses gdb. This "./" thing is send by KDevelop in some cases. I'm about to fix on KDevelop side just to make sure it works with gdb 6.4, but actually, this seems like a bug in gdb. Say, I have two files called util.cpp -- one in current dir, and another in some library. It's reasonable to use "./util.cpp" to refer to a file in the current dir, no? So, is this a bug, and should I file it in the tracker? - Volodya