From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30245 invoked by alias); 3 Dec 2005 14:55:04 -0000 Received: (qmail 30238 invoked by uid 22791); 3 Dec 2005 14:55:04 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 Dec 2005 14:55:03 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-89-139.inter.net.il [80.230.89.139]) by romy.inter.net.il (MOS 3.7.2-GA) with ESMTP id DCJ71108 (AUTH halo1); Sat, 3 Dec 2005 16:54:54 +0200 (IST) Date: Sat, 03 Dec 2005 14:55:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus , gdb@sources.redhat.com In-reply-to: <20051203142149.GC10592@white> (message from Bob Rossi on Sat, 3 Dec 2005 09:21:49 -0500) Subject: Re: Filename with "./" in breakpoint command Reply-to: Eli Zaretskii References: <20051203142149.GC10592@white> 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/msg00039.txt.bz2 > Date: Sat, 3 Dec 2005 09:21:49 -0500 > From: Bob Rossi > Cc: Vladimir Prus , gdb@sources.redhat.com > > > What are the actual source file names recorded in the debug info? > > Please show us that, and we will be able to reason whether this is a > > feature, a bug, or a missing feature. > > Eli, I can reproduce this like this, > tmp/ > one/ > uut.c uut.h > two/ > uut.c uut.h main.c > > If I compile each file in there own directory with -g and then link in > directory two/ and then start GDB from there, the command > b uut.c:5 works for me and b ./uut.c:5 doesn't. If I compile > gcc -S uut.c in either directory, the assembly file says the name is > "uut.c". Is there a better way to tell you what the debug info says? Yes, there is a better way: type "info sources" inside GDB.