From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7721 invoked by alias); 6 Feb 2005 23:18:11 -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 7688 invoked from network); 6 Feb 2005 23:18:07 -0000 Received: from unknown (HELO lakermmtai05.cox.net) (68.230.240.54) by sourceware.org with SMTP; 6 Feb 2005 23:18:07 -0000 Received: from white ([68.9.64.121]) by lakermmtao11.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050206210636.DXWK15343.lakermmtao11.cox.net@white>; Sun, 6 Feb 2005 16:06:36 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Cxtc5-0005Sj-00; Sun, 06 Feb 2005 16:06:37 -0500 Date: Mon, 07 Feb 2005 00:17:00 -0000 From: Bob Rossi To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: fullname descriptor with -break-list Message-ID: <20050206210637.GB19609@white> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <16902.30786.705993.121669@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16902.30786.705993.121669@farnswood.snap.net.nz> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-02/txt/msg00022.txt.bz2 On Mon, Feb 07, 2005 at 09:04:18AM +1300, Nick Roberts wrote: > > I am trying to migrate the GDB user interface in Emacs from annotations to > MI. To help with this process, I would like to add the fullname, as used in > -file-list-exec-source-file and -file-list-exec-source-files, to the MI > command -break-list. > > i.e the example in the manual would look like: > > -break-list > ^done,BreakpointTable={nr_rows="1",nr_cols="6", > hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"}, > {width="14",alignment="-1",col_name="type",colhdr="Type"}, > {width="4",alignment="-1",col_name="disp",colhdr="Disp"}, > {width="3",alignment="-1",col_name="enabled",colhdr="Enb"}, > {width="10",alignment="-1",col_name="addr",colhdr="Address"}, > {width="40",alignment="2",col_name="what",colhdr="What"}], > body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y", > addr="0x000100d0",func="main",file="hello.c", > fullname="/home/nick/hello.c",line="5",cond="1",times="0",ignore="3"}]} > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > 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. Bob Rossi