From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9994 invoked by alias); 7 Feb 2005 00:17:42 -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 9408 invoked from network); 7 Feb 2005 00:17:18 -0000 Received: from unknown (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org with SMTP; 7 Feb 2005 00:17:18 -0000 Received: from farnswood.snap.net.nz (p108-tnt1.snap.net.nz [202.124.110.108]) by viper.snap.net.nz (Postfix) with ESMTP id 8D5E52E5FC9; Mon, 7 Feb 2005 13:17:16 +1300 (NZDT) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 86219628AB; Mon, 7 Feb 2005 00:10:07 +0000 (GMT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16902.45534.858929.941689@farnswood.snap.net.nz> Date: Mon, 07 Feb 2005 02:49:00 -0000 To: Bob Rossi Cc: gdb@sources.redhat.com Subject: Re: fullname descriptor with -break-list In-Reply-To: <20050206210637.GB19609@white> References: <16902.30786.705993.121669@farnswood.snap.net.nz> <20050206210637.GB19609@white> X-SW-Source: 2005-02/txt/msg00023.txt.bz2 > > 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"} 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? Nick