From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22189 invoked by alias); 24 Jan 2006 14:44:23 -0000 Received: (qmail 22180 invoked by uid 22791); 24 Jan 2006 14:44:22 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao01.cox.net (HELO eastrmmtao01.cox.net) (68.230.240.38) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 24 Jan 2006 14:44:21 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao01.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060124144423.WMIZ4894.eastrmmtao01.cox.net@localhost.localdomain>; Tue, 24 Jan 2006 09:44:23 -0500 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1F1PPd-00042T-OH; Tue, 24 Jan 2006 09:44:49 -0500 Date: Tue, 24 Jan 2006 14:48:00 -0000 From: Bob Rossi To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: MI -break-info command issues Message-ID: <20060124144449.GE28357@brasko.net> Mail-Followup-To: Vladimir Prus , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00235.txt.bz2 On Tue, Jan 24, 2006 at 05:16:49PM +0300, Vladimir Prus wrote: > > Hello! > > Playing with MI -break-info command with gdb 6.4, I notice two issues. > > 1. The command does not print the full name (i.e. absolute) of the file > where the breakpoint is. That is pretty bad for integrating with GUIs. Did > I miss some other command? Is there a way to get full name of the file? You can use -file-list-exec-source-file and -file-list-exec-source-files. However, I thought someone already added the fullname to the breakpoint output. Try CVS. If they have not, this would be an obvious improvement and patches are welcome. 2. The output of the command looks like this: > ^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="2",type="breakpoint",disp="keep",enabled="y", > addr="0x08048464",func="main",file="main.cpp",line="6",times="1"}]} > > What is the point of producing spreadsheet-like output with columns and > column heading and column alignment? I'd expect that any GUI frontend will > have some specific representation and just ignore that extra formatting. > Why generate it at all? I agree, this output has always been useless to me. I would be happy to see it go away. Bob Rossi