From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baoqiu Cui Newsgroups: gmane.emacs.bugs Subject: bug#3585: gdb not responding on Emacs from CVS Date: Tue, 16 Jun 2009 14:40:13 -0700 Organization: at&t http://my.att.net/ Message-ID: References: Reply-To: Baoqiu Cui , 3585@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245190579 6387 80.91.229.12 (16 Jun 2009 22:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2009 22:16:19 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 00:16:16 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 1MGgwx-0002oP-1y for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 00:16:15 +0200 Original-Received: from localhost ([127.0.0.1]:53842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGgww-0001tR-9R for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jun 2009 18:16:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGgen-0002du-G5 for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:57:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGgei-0002b1-74 for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:57:28 -0400 Original-Received: from [199.232.76.173] (port=40601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGgei-0002am-1X for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:57:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34439) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGgeh-0000xx-Ef for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:57:23 -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 n5GLvKVh016533; Tue, 16 Jun 2009 14:57:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5GLo4jk015006; Tue, 16 Jun 2009 14:50:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Baoqiu Cui Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 16 Jun 2009 21:50:04 +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 submit@emacsbugs.donarmstrong.com id=B.124518844613766 (code B ref -1); Tue, 16 Jun 2009 21:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jun 2009 21:40:46 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5GLedIw013756 for ; Tue, 16 Jun 2009 14:40:41 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGgOV-0003Ab-Dt for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:40:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGgOR-000370-Nj for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:40:39 -0400 Original-Received: from [199.232.76.173] (port=41930 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGgOR-00036n-Hs for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:40:35 -0400 Original-Received: from moderators.individual.net ([130.133.4.7]:48640) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGgOQ-0006hm-Rd for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2009 17:40:35 -0400 Original-Received: from mail167.messagelabs.com ([216.82.253.179]) by moderators.individual.net (Exim 4.69) for gnu-emacs-bug@moderators.isc.org with esmtp (envelope-from ) id <1MGgOO-0000BY-RW>; Tue, 16 Jun 2009 23:40:33 +0200 X-VirusChecked: Checked X-Env-Sender: news@nlpi066.nbdc.sbc.com X-Msg-Ref: server-13.tower-167.messagelabs.com!1245188427!13626847!1 X-StarScan-Version: 6.0.0; banners=-,-,- X-Originating-IP: [144.160.20.53] Original-Received: (qmail 26018 invoked from network); 16 Jun 2009 21:40:28 -0000 Original-Received: from sbcsmtp6.sbc.com (HELO mlph073.enaf.sfdc.sbc.com) (144.160.20.53) by server-13.tower-167.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 16 Jun 2009 21:40:28 -0000 Original-Received: from enaf.sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlph073.enaf.sfdc.sbc.com (8.14.3/8.14.3) with ESMTP id n5GLeQgH032751 for ; Tue, 16 Jun 2009 17:40:27 -0400 Original-Received: from mlph070.sfdc.sbc.com (mlph070.sfdc.sbc.com [144.155.224.139]) by mlph073.enaf.sfdc.sbc.com (8.14.3/8.14.3) with ESMTP id n5GLeL7p032683 for ; Tue, 16 Jun 2009 17:40:21 -0400 Original-Received: from sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlph070.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id n5GLeLlx025073 for ; Tue, 16 Jun 2009 17:40:21 -0400 Original-Received: from newssvr22.news.prodigy.net (nlpi066-int.nbdc.sbc.com [207.115.46.222]) by mlph070.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id n5GLeEAM024363 for ; Tue, 16 Jun 2009 17:40:14 -0400 Original-Received: from nlpi066.nbdc.sbc.com (nlpi066.nbdc.sbc.com [127.0.0.1]) by newssvr22.news.prodigy.net (8.14.0/8.14.0) with ESMTP id n5GLeEMm013321 for ; Tue, 16 Jun 2009 17:40:14 -0400 Original-Received: from localhost (localhost [[UNIX: localhost]]) by nlpi066.nbdc.sbc.com (8.14.0/8.14.0/Submit) id n5GLeEgi013320; Tue, 16 Jun 2009 17:40:14 -0400 Original-Path: 508a9475!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) Cancel-Lock: sha1:NecmYvXWprRzEVGHV4Vv5GR00qA= Original-Lines: 50 Original-NNTP-Posting-Host: 209.131.62.113 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi066.nbdc.sbc.com 1245188414 ST000 209.131.62.113 (Tue, 16 Jun 2009 17:40:14 EDT) Original-NNTP-Posting-Date: Tue, 16 Jun 2009 17:40:14 EDT X-UserInfo1: S[OWR_SG\B^UCWDYIBHZOWP@YZOZ@GXOXB]T]_MIJQR@EPIB_VUKAH_[MTX\IS[K[NGYJJFNOFZR_G[BUNTAOQLFE^TEHRPI]PZZRP_BMDSFQFL_]CBHXRWCMDCUZAZN@D_AKMNLEI]MWHCSXL^]NNC__CZFGSGHYYXWPFG@SCAVA]\FT\@B\RDGENSUQS^M X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 16 Jun 2009 17:57:28 -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:28751 Archived-At: Baoqiu Cui writes: > After typing in ``pwd'', gdb-debug-log has the following value > (from which you can see the GDB version that I use): > > ------------------------------------------------------------------------ > gdb-debug-log is a variable defined in `gdb-ui.el'. > Its value is > ((recv . "(gdb) ") > (recv . "Using host libthread_db library \"/lib64/tls/libthread_db.so.1\".\n") > (recv . "License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-unknown-linux-gnu\"...\n") > (recv . "GNU gdb 6.7.1\nCopyright (C) 2007 Free Software Foundation, Inc.\n")) > ------------------------------------------------------------------------ > > It seems that the Return key was ignored. After pressing C-c C-c, the > value of gdb-debug-log becomes: > > ------------------------------------------------------------------------ > gdb-debug-log is a variable defined in `gdb-ui.el'. > Its value is > ((recv . "(gdb) ") > (recv . "Quit\n") > (recv . "(gdb) ") > (recv . "Using host libthread_db library \"/lib64/tls/libthread_db.so.1\".\n") > (recv . "License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-unknown-linux-gnu\"...\n") > (recv . "GNU gdb 6.7.1\nCopyright (C) 2007 Free Software Foundation, Inc.\n")) > ------------------------------------------------------------------------ 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? Thanks, Baoqiu