From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dov Grobgeld Newsgroups: gmane.emacs.bugs Subject: bug#10580: 24.0.92; gdb initialization takes more than one minute at 100% CPU Date: Wed, 9 May 2012 00:30:08 +0300 Message-ID: References: <87aa1mj69x.fsf@gnu.org> <87havtvpeb.fsf@gnu.org> <874nrsem67.fsf@gnu.org> <874nrswme9.fsf@gnu.org> <87zk9kv75l.fsf@gnu.org> <87mx5j6pqs.fsf@gnu.org> <877gwm3ajn.fsf@gnu.org> <83txzq1s4y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec54a3df4407f4704bf8d17fa X-Trace: dough.gmane.org 1336512671 27195 80.91.229.3 (8 May 2012 21:31:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 21:31:11 +0000 (UTC) Cc: Chong Yidong , 10580@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 08 23:31:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRrzo-0005vH-9k for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2012 23:31:00 +0200 Original-Received: from localhost ([::1]:47435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRrzn-0004Um-ML for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2012 17:30:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRrzk-0004Ug-TO for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 17:30:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRrzj-0003w9-6P for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 17:30:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRrzj-0003w3-0S for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 17:30:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SRs1m-00039D-FS for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 17:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dov Grobgeld Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 May 2012 21:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10580-submit@debbugs.gnu.org id=B10580.133651274712004 (code B ref 10580); Tue, 08 May 2012 21:33:02 +0000 Original-Received: (at 10580) by debbugs.gnu.org; 8 May 2012 21:32:27 +0000 Original-Received: from localhost ([127.0.0.1]:41745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRs1C-00037Y-RM for submit@debbugs.gnu.org; Tue, 08 May 2012 17:32:27 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.213.172]:62612) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRs1A-00037N-F6 for 10580@debbugs.gnu.org; Tue, 08 May 2012 17:32:25 -0400 Original-Received: by yenq13 with SMTP id q13so2005760yen.3 for <10580@debbugs.gnu.org>; Tue, 08 May 2012 14:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lBiKMQzpsTIYPFOudBnddWiIxV4KBT9Nc8M2xxnUAaw=; b=w62zKvayuJcwAwg4h+AcBbyrSMV7xaFpIIqmEJPx/7ILCNZ4+lnmWeFD5EidtuKJ+g FQlwjcNC28nGYjCsKf9Tw6zSfT9h2X2q6KidKFFVkoOpCR+rsBWLgyacWuAe/GhUp/RR pXTbUVQC8JGQaAxAb9+F2jOsSoxhzLvbPvR/udczVaOc5fD4UMPNA2llo82U9CLP/iuq /aGnC7W4SFmPqwLMBH+IegAET2uqHNoWTFTFRwQuu3S04Wd4ONfdkRZ08R4nsrkN0aWA BxLfvP0d5N3zpI+2hnxWXj6rQX7LL3HM43oEyx/fUMLjl2x7j9kXnHJwjwRX2uclsX4n pI1A== Original-Received: by 10.60.169.165 with SMTP id af5mr6039292oec.72.1336512608239; Tue, 08 May 2012 14:30:08 -0700 (PDT) Original-Received: by 10.182.60.137 with HTTP; Tue, 8 May 2012 14:30:08 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59877 Archived-At: --bcaec54a3df4407f4704bf8d17fa Content-Type: text/plain; charset=UTF-8 I first that at first too, but then I realized that it doesn't do it. The gdb-mi.el source has the following logic. (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))) i.e. the gdb command "-file-list-exec-source-files" (note the s in files) is called independantly from gdb-create-source-file-list which only influences the execution of "-file-list-exec-source-file". On Wed, May 9, 2012 at 12:24 AM, Andreas Schwab wrote: > Dov Grobgeld writes: > > > * Why does gdb-mi.el do -file-list-exec-source-files at all? Can't it > > search for source files on demand? > > Customize gdb-create-source-file-list to nil. > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." > --bcaec54a3df4407f4704bf8d17fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I first that at = first too, but then I realized that it doesn't do it. The gdb-mi.el sou= rce has the following logic.

=C2=A0 (gdb-input
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ; Needs = GDB 6.2 onwards.
=C2=A0=C2=A0 (list "-file-list-exec-source-files" 'gdb-get-so= urce-file-list))
=C2=A0 (if gdb-create-source-file-list
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (gdb-input
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ; Needs GDB 6.0 onwards.
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list "-file-list-exec-source-file&q= uot; 'gdb-get-source-file)))

i.e. the gdb command "-file-list-exec-source-files" (note the= s in files) is called independantly from gdb-create-source-file-list which= only influences the
execu= tion of "-file-list-exec-source-file".

On Wed, May 9, 2012 at 12:24 AM, Andr= eas Schwab <schwab@linux-m68k.org> wrote:
Dov Grobgeld <dov.grobgeld@gmail.com> writes:

> * Why does gdb-mi.el do -file-list-exec-source-files at all? Can't= it
> search for source files on demand?

Customize gdb-create-source-file-list to nil.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.= org
GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 =C2=A001D3 44D5 214B 8276 = 4ED5
"And now for something completely different."

--bcaec54a3df4407f4704bf8d17fa--