From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14007 invoked by alias); 25 Jan 2006 12:50:54 -0000 Received: (qmail 13997 invoked by uid 22791); 25 Jan 2006 12:50:54 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jan 2006 12:50:52 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1F1k6q-0008BP-Uw for gdb-patches@sources.redhat.com; Wed, 25 Jan 2006 15:50:49 +0300 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1F1k0s-0006xJ-3q; Wed, 25 Jan 2006 15:44:38 +0300 From: Vladimir Prus To: Bob Rossi Subject: Re: [PATCH] Add fullname field for MI -break-info command Date: Wed, 25 Jan 2006 12:50:00 -0000 User-Agent: KMail/1.7.2 Cc: gdb-patches@sources.redhat.com References: <200601241932.16022.ghost@cs.msu.su> <20060125121030.GJ28357@brasko.net> In-Reply-To: <20060125121030.GJ28357@brasko.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601251544.27477.ghost@cs.msu.su> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00405.txt.bz2 On Wednesday 25 January 2006 15:10, Bob Rossi wrote: > > I'm looking into this right now, and have a question. Inside the test, I > > need to get the absolute path to the source file. If I use: > > > > "${srcdir}/${subdir}/${srcfile}" > > > > the result is: > > > > "../.././gdb/testsuite/gdb.mi/basics.c" > > No, please user ${fullname_syntax}${srcfile}. That will provide you with > a regular expression that matches the fullname, and end in the source > file you are interestd in. You can see how this is done in > mi2-stack.exp. Thanks, that works. > > while output of gdb has absolute path name. So: how do I convert relative > > path to an absolute one inside a test? (I don't know anything about Tcl, > > so it's not obvious for me). > > > > BTW, it would be nice in gdbint explicitly said how one can run a > > specific test from testsuite. > > Yeah, I totally agree. I forget every time. Try 'runtest mi2-stack.exp', > to run just that test. Well, that does not quite work. The command that works for me is: runtest --tool gdb gdb.mi/mi2-stack.exp > > > Also, don't forget about the documentation. > > > > Well, at the moment the -break-info command is not documented at all, so > > there's no place where I can add the extra "fullname" field. > > Hmm, there is a section in the gdb.texinfo manual that says > @c REDUNDANT??? > Get information about a single breakpoint. > how is this command useful, instead of just using -break-list? Hmm, so I should update all examples of "-break-list" output as well? What path should I put there? Is /home/foo/bar/.c fine? - Volodya