From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19653 invoked by alias); 7 Feb 2005 15:10:37 -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 19611 invoked from network); 7 Feb 2005 15:10:33 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 7 Feb 2005 15:10:33 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j17FAXa5001752 for ; Mon, 7 Feb 2005 10:10:33 -0500 Received: from localhost.redhat.com (vpn50-85.rdu.redhat.com [172.16.50.85]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j17FAWO22185; Mon, 7 Feb 2005 10:10:32 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D360C7D79; Mon, 7 Feb 2005 10:10:17 -0500 (EST) Message-ID: <420784D8.9010101@gnu.org> Date: Mon, 07 Feb 2005 15:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Bob Rossi Cc: Nick Roberts , gdb@sources.redhat.com Subject: Re: fullname descriptor with -break-list References: <16902.30786.705993.121669@farnswood.snap.net.nz> <20050206210637.GB19609@white> In-Reply-To: <20050206210637.GB19609@white> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-02/txt/msg00028.txt.bz2 Bob Rossi wrote: > 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. Sounds good. Andrew