From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6891 invoked by alias); 21 Mar 2003 13:26:27 -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 6868 invoked from network); 21 Mar 2003 13:26:25 -0000 Received: from unknown (HELO white) (68.14.146.65) by sources.redhat.com with SMTP; 21 Mar 2003 13:26:25 -0000 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 18wMXS-0003so-00 for ; Fri, 21 Mar 2003 08:26:26 -0500 Date: Fri, 21 Mar 2003 13:26:00 -0000 From: Bob Rossi To: gdb@sources.redhat.com Subject: Getting all breakable lines from gdb Message-ID: <20030321132626.GB14884@white> Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2003-03/txt/msg00312.txt.bz2 I just had this thought. Would it be possible to add a command to the MI interface that would return a list of all possible line numbers in a file that the user could set a breakpoint at? Its really disgusting how other front ends get that information now. When a new 800 line file is open, they run these commands list 1,1000000 info line 1 info line 2 ... info line 800 They parse the output of each command to determine if a breakpoint can be set. I suggest a command that returns a list of line numbers for a given file. Thus improving communication between the front end and gdb. Believe me, the overhead on a 15,000 line file is noticable. Any suggestions? Thanks, Bobby