From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3792 invoked by alias); 7 Feb 2005 13:49:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3371 invoked from network); 7 Feb 2005 13:48:29 -0000 Received: from unknown (HELO lakermmtao09.cox.net) (68.230.240.30) by sourceware.org with SMTP; 7 Feb 2005 13:48:29 -0000 Received: from white ([68.9.64.121]) by lakermmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050207134828.WIYD10760.lakermmtao09.cox.net@white>; Mon, 7 Feb 2005 08:48:28 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Cy9Fd-0005in-00; Mon, 07 Feb 2005 08:48:29 -0500 Date: Mon, 07 Feb 2005 14:54:00 -0000 From: Bob Rossi To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: fullname descriptor with -break-list Message-ID: <20050207134829.GA21985@white> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <16902.30786.705993.121669@farnswood.snap.net.nz> <20050206210637.GB19609@white> <16902.45534.858929.941689@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16902.45534.858929.941689@farnswood.snap.net.nz> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-02/txt/msg00026.txt.bz2 On Mon, Feb 07, 2005 at 01:10:06PM +1300, Nick Roberts wrote: > > > Would such a patch be acceptable? > > > > I believe it would be, when I added the -file-list commands, I was asked > > to add the information to the breakpoints and to the stack command. > > > > I didn't do it simply for time reasons. You can use the > > symtab_to_fullname or psymtab_to_fullname functions to get the data you > > need. > > > > In the long run, it would probably be usefull to output the fullname > > everywhere that "file" is used. > > For the moment, I will start GDB with annotations and convert as many of the > CLI commands to MI as I can. I already use variable objects and I will add to > this. I don't currently need the fullname in the stack output because it > always gets printed for the current frame by annotations. Eventually I will > need to get this information from MI output. I notice, however, that, in MI, > the fullname *doesn't* get printed when execution stops: > > -exec-run > ^running > (gdb) > *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x080486e2",func="myprint",args=[{name="i",value="0"},{name="j",value="0"}],file="myprint.c",line="5"} O wow, it would be great to add this. I've been working on the MI testsuite lately, and after I'm done with that, I'll most likely end up wanting this exact feature. Otherwise, I'll have to call -file-list-exec-source-file every time instead. > I seem to recall there was some discussion about this earlier but I didn't > follow the thread closely. Can somebody please tell me what the outcome was? I don't recall anything about this. Sorry. Bob Rossi