From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: GDB startup Date: Wed, 16 Feb 2005 10:35:09 +1300 Message-ID: <16914.27405.844755.48839@farnswood.snap.net.nz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108503700 11362 80.91.229.2 (15 Feb 2005 21:41:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2005 21:41:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 15 22:41:40 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D1ARZ-00046P-9C for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2005 22:41:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1AhN-0000Ta-CH for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2005 16:57:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D1AgU-0000HA-9Y for emacs-devel@gnu.org; Tue, 15 Feb 2005 16:56:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D1AgK-0000C0-15 for emacs-devel@gnu.org; Tue, 15 Feb 2005 16:56:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1AgJ-00009D-B2 for emacs-devel@gnu.org; Tue, 15 Feb 2005 16:56:31 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D1AN3-0005LT-53 for emacs-devel@gnu.org; Tue, 15 Feb 2005 16:36:37 -0500 Original-Received: from farnswood.snap.net.nz (p249-tnt1.snap.net.nz [202.124.110.249]) by viper.snap.net.nz (Postfix) with ESMTP id 900003BC10C; Wed, 16 Feb 2005 10:36:35 +1300 (NZDT) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 9808F62FBE; Tue, 15 Feb 2005 21:35:10 +0000 (GMT) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33506 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33506 > I see a significant delay when I start M-x gdb, where the *gdb* > buffer is shown with most of the gdb's startup output displayed, except for > the prompt. After about 10s, the prompt finally shows up. > > I suspect it's due to the new feature "go through all buffers and ask the > gdb subprocess whether it should be put in gud-gdb-minor-mode". I have many > buffers open, so I guess this loop takes a while. > > Would it be possible to "do it in the background", maybe? I'm not sure what you mean. GDB runs asynchronously from Emacs, so all commands sent to it *do* run in the background. Maybe, because there is so much input and output, you can't get the prompt so it feels like its running in foreground. Presumably a lot of your buffers aren't visible which makes me wonder whether its possible to have a when-buffer-becomes-visible-hook? A more practical solution might be to limit the number of buffers/files (its probably the latter which takes most time) that Emacs considers. Clearly, what is a sensible number would depend on the speed of the computer (I think that perhaps you have a clunky machine). Generally, how many buffers do you have open with files in them? Nick