From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4555 invoked by alias); 1 Mar 2003 02:05:51 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3988 invoked from network); 1 Mar 2003 02:05:48 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 1 Mar 2003 02:05:48 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18oyH3-00075C-00; Fri, 28 Feb 2003 22:06:57 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18owNl-0008Sr-00; Fri, 28 Feb 2003 21:05:45 -0500 Date: Sat, 01 Mar 2003 02:05:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Add new command to spit out the linetable for a given file Message-ID: <20030301020545.GA32479@nevyn.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sources.redhat.com References: <20030301003358.GB11181@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030301003358.GB11181@gnat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00001.txt.bz2 On Fri, Feb 28, 2003 at 04:33:58PM -0800, Joel Brobecker wrote: > The GVD developpers have brought to my attention an issue regarding > mostly performance: GVD has a feature were it is capable of telling > whether a given line of a source file contains any code. In order to > do this, they use the "info line" command on every single line of the > file. > > Obviously, this causes a lot of communication between GDB and GVD, so > they managed to improve a bit the performance by doing this operation as > a background task for the lines that are not currently displayed in the > editor (that is, without blocking the user from doing anything else). > > In an effort to continue improving the performance even more, they asked > me if it was possible to add a new command that would print all in one > go the list of lines containing some code. > > In parallel, I know that GVD also provides an assembly view of the > current line of code. In order to get the addresses of the instructions > corresponding to the current line of code, the also use "info line". > > So the idea that I came up with was to add a new function that would > essentially dump the linetable for the symtab of the file in question. > Roughly, from the user's perspective, it would be a new info command > (names can be improved): I believe that this command has been proposed before - I vaguely remember it even being implemented but I don't know what happened to the patch. It was "maint info lines" or something similar... Would be within the past year in the list archives somewhere but I can't find it. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer