From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nickrob@snap.net.nz (Nick Roberts) Newsgroups: gmane.emacs.bugs Subject: bug#3585: gdb not responding on Emacs from CVS Date: Mon, 22 Jun 2009 00:47:51 +1200 Message-ID: <19006.11255.5188.858625@totara.tehura.co.nz> References: Reply-To: Nick Roberts , 3585@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245589060 18379 80.91.229.12 (21 Jun 2009 12:57:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2009 12:57:40 +0000 (UTC) Cc: gnu-emacs-bug@moderators.isc.org To: Baoqiu Cui , 3585@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 21 14:57:36 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MIMc4-0006tq-88 for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2009 14:57:36 +0200 Original-Received: from localhost ([127.0.0.1]:42966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIMc3-0006lj-8i for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2009 08:57:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIMbz-0006lK-6F for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2009 08:57:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIMbv-0006h9-2R for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2009 08:57:30 -0400 Original-Received: from [199.232.76.173] (port=47966 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIMbu-0006h2-PQ for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2009 08:57:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51484) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MIMbt-0005ui-VH for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2009 08:57:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5LCvLrI017427; Sun, 21 Jun 2009 05:57:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5LCtCNk016857; Sun, 21 Jun 2009 05:55:12 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: nickrob@snap.net.nz (Nick Roberts) Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 21 Jun 2009 12:55:12 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3585 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3585-submit@emacsbugs.donarmstrong.com id=B3585.124558848015538 (code B ref 3585); Sun, 21 Jun 2009 12:55:12 +0000 Original-Received: (at 3585) by emacsbugs.donarmstrong.com; 21 Jun 2009 12:48:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from viper.snap.net.nz (viper.snap.net.nz [202.37.101.25] (may be forged)) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5LCls3G015531 for <3585@emacsbugs.donarmstrong.com>; Sun, 21 Jun 2009 05:47:56 -0700 Original-Received: from totara (137.26.255.123.static.snap.net.nz [123.255.26.137]) by viper.snap.net.nz (Postfix) with ESMTP id 506733D9FCA; Mon, 22 Jun 2009 00:47:52 +1200 (NZST) Original-Received: by totara (Postfix, from userid 1000) id 0A335C13F; Mon, 22 Jun 2009 00:47:51 +1200 (NZST) Original-Newsgroups: gnu.emacs.bug In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 21 Jun 2009 08:57:30 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28876 Archived-At: > Here is some more information. It seems that this problem has something > to do with the size of the program that I am trying to debug. If I try > to follow the same steps for a small testing program, everything is > fine. > > I noticed that, for the big program that I was debugging, it took about > 50 seconds to have the "[initializing...]" Debugger status in mode-line > changed to "[ready]". GDB simply does not respond to user's commands > before it is *ready*. > > I tried the same thing on Emacs 21, which does not report status like > [initializing...] or [ready], and it seems that GDB interface there is > much faster. It only takes 10-15 seconds to load the same big program > and then display the "(gdb) " prompt. Once the prompt is displayed, GDB > is *ready* to respond any command I type in. > > Why does it take 50 seconds to "initialize" things? Emacs 22 seems to > have the same "delay". Is there anyway to cut the time spent on > initializing? Emacs 22 builds a list of filenames from GDB that were used to build the executable and this takes a long time if you have an executable that was created from a large number of files, particularly if you use stabs debug format. There is an option, gdb-create-source-file-list, which when set to nil means that Emacs doesn't build this list at start up. That makes it quicker but if there are relevant files in existing buffers or you visit them they won't be enabled for debugging, e.g., you won't be able to click in the fringe to set a breakpoint until execution has already stopped there. This option has been around since 2008-07-01. If your Emacs predates this then you might like to get Emacs 23.1 which will be released shortly. Alternatively you can get the Emacs 21 speed/behavior by using M-x gud-gdb. -- Nick http://www.inet.net.nz/~nickrob