From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Aneesh Kumar K.V" Newsgroups: gmane.emacs.devel Subject: Re:gdb-create-source-file-list and gdb-mi.el Date: Tue, 29 Nov 2011 13:22:52 +0530 Message-ID: <87mxbf8iwb.fsf@linux.vnet.ibm.com> References: <1322031913.8188.4.camel@totara.tehura.co.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1322553196 13842 80.91.229.12 (29 Nov 2011 07:53:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 07:53:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 08:53:11 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVIV4-00033X-Do for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 08:53:10 +0100 Original-Received: from localhost ([::1]:41008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVIV3-00012F-3B for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 02:53:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVIV0-000127-CA for emacs-devel@gnu.org; Tue, 29 Nov 2011 02:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVIUz-0002rw-4N for emacs-devel@gnu.org; Tue, 29 Nov 2011 02:53:06 -0500 Original-Received: from e35.co.us.ibm.com ([32.97.110.153]:60493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVIUy-0002rj-N3 for emacs-devel@gnu.org; Tue, 29 Nov 2011 02:53:05 -0500 Original-Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 29 Nov 2011 00:53:03 -0700 Original-Received: from d03relay01.boulder.ibm.com ([9.17.195.226]) by e35.co.us.ibm.com ([192.168.1.135]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 29 Nov 2011 00:53:01 -0700 Original-Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAT7r0t4130734 for ; Tue, 29 Nov 2011 00:53:00 -0700 Original-Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAT7qxKl002099 for ; Tue, 29 Nov 2011 00:52:59 -0700 Original-Received: from skywalker.linux.vnet.ibm.com ([9.124.94.69]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pAT7qsRw001650; Tue, 29 Nov 2011 00:52:56 -0700 In-Reply-To: <1322031913.8188.4.camel@totara.tehura.co.nz> User-Agent: Notmuch/0.10+49~g9d33497 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) x-cbid: 11112907-6148-0000-0000-00000198E48A X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 32.97.110.153 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146339 Archived-At: On Wed, 23 Nov 2011 20:05:13 +1300, Nick Roberts wrote: > > gdb-mi.el does the below > > > > ;; find source file and compilation directory here > > (gdb-input > > ; Needs GDB 6.2 onwards. > > (list "-file-list-exec-source-files" 'gdb-get-source-file-list)) > > (if gdb-create-source-file-list > > (gdb-input > > ; Needs GDB 6.0 onwards. > > (list "-file-list-exec-source-file" 'gdb-get-source-file))) > > > Don't we need to make sure the the "-file-list-exec-source-files" also > > come withing the gdb-crate-source-file-list check ?. Current gdb with > > linux kernel vmlinux takes so much time to give me the prompt. > > Yes it looks like I made a mistake. The if clause should be around the first gdb-input. > > I don't know the status of the freeze so I've not committed this change. > The change committed also require to move the mode line update out of gdb-get-source-file-list to gdb-init-1. Otherwise mode line will say "Intializing.." even after giving (gdb) prompt. -aneesh