From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re:gdb-create-source-file-list and gdb-mi.el Date: Tue, 29 Nov 2011 21:45:47 +1300 Message-ID: <20180.39867.953048.999489@totara.tehura.co.nz> References: <1322031913.8188.4.camel@totara.tehura.co.nz> <87mxbf8iwb.fsf@linux.vnet.ibm.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322558279 15336 80.91.229.12 (29 Nov 2011 09:17:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 09:17:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Aneesh Kumar K.V" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 10:17:55 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 1RVJp3-0006bp-CL for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 10:17:53 +0100 Original-Received: from localhost ([::1]:41200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVJp2-0001yf-Tb for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 04:17:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVJp0-0001yR-8P for emacs-devel@gnu.org; Tue, 29 Nov 2011 04:17:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVJou-0003u7-Gw for emacs-devel@gnu.org; Tue, 29 Nov 2011 04:17:50 -0500 Original-Received: from unit0.ironport.snap.net.nz ([202.37.100.104]:49460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVJou-0003tJ-72 for emacs-devel@gnu.org; Tue, 29 Nov 2011 04:17:44 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwEAHqa1E5vRfWt/2dsb2JhbABDqneCdwEBAQQ6PxALGC4sKwYTv1USiwwElFSSJw X-IronPort-AV: E=Sophos;i="4.69,590,1315137600"; d="scan'208";a="87608354" Original-Received: from rupert.snap.net.nz ([202.37.100.140]) by smtp0.ironport.snap.net.nz with ESMTP; 29 Nov 2011 21:45:47 +1300 X-Sender-IP: 111.69.245.173 X-Sender-IP: 111.69.245.173 Original-Received: from totara (173.245.69.111.dynamic.snap.net.nz [111.69.245.173]) by rupert.snap.net.nz (Postfix) with ESMTP id BB0C22019E; Tue, 29 Nov 2011 21:45:46 +1300 (NZDT) Original-Received: by totara (Postfix, from userid 1000) id 09C4D1189A1; Tue, 29 Nov 2011 21:45:48 +1300 (NZDT) In-Reply-To: <87mxbf8iwb.fsf@linux.vnet.ibm.com> X-Mailer: VM 7.19 under Emacs 23.1.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.37.100.104 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:146343 Archived-At: Aneesh Kumar K.V writes: > 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. I think that you're probably more familiar with some of this code than I am now. I've don't have much time for emacs development at the moment and I don't want to become a bottleneck. So I'm happy for you to commit these changes if it's OK with Cyd and Stefan. Ken Brown's patches look good too. One, at least, is a regression from gdb-ui.el which probably still has fewer issues than gdb-mi.el Nick