From unknown Thu Sep 11 11:35:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10087: 24.0.91; gdb-create-source-file-list and the documented behaviour Resent-From: "Aneesh Kumar K.V" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2011 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10087@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132180917330336 (code B ref -1); Sun, 20 Nov 2011 17:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2011 17:12:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RSAwn-0007tE-BF for submit@debbugs.gnu.org; Sun, 20 Nov 2011 12:12:53 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RSAwk-0007t6-Bl for submit@debbugs.gnu.org; Sun, 20 Nov 2011 12:12:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSAvc-0002Tv-B1 for submit@debbugs.gnu.org; Sun, 20 Nov 2011 12:11:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:57122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSAvc-0002Tr-9a for submit@debbugs.gnu.org; Sun, 20 Nov 2011 12:11:40 -0500 Received: from eggs.gnu.org ([140.186.70.92]:52563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSAvb-0002ou-3V for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2011 12:11:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSAvZ-0002TG-Gu for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2011 12:11:39 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:40097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSAvZ-0002T8-EK for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2011 12:11:37 -0500 Received: from /spool/local by e5.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 20 Nov 2011 12:11:33 -0500 Received: from d01relay01.pok.ibm.com ([9.56.227.233]) by e5.ny.us.ibm.com ([192.168.1.105]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 20 Nov 2011 12:11:32 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAKHBV1A298860 for ; Sun, 20 Nov 2011 12:11:31 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAKHBVYv008104 for ; Sun, 20 Nov 2011 15:11:31 -0200 Received: from skywalker.linux.vnet.ibm.com ([9.79.215.226]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pAKHBRZt007969 for ; Sun, 20 Nov 2011 15:11:29 -0200 From: "Aneesh Kumar K.V" User-Agent: Notmuch/0.9+73~ged20210 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sun, 20 Nov 2011 22:41:26 +0530 Message-ID: <87bos6hg75.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii x-cbid: 11112017-5930-0000-0000-000001F2270F X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) I have set gdb-create-source-file-list to nil, but still gdb takes lot of time to give the (gdb) prompt for binaries like linux kernel. Looking at the source, I guess gdb-create-source-file-list check is not correct. We have ;; 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 conditionalize gdb-get-source-file-list call ? Also "ready" mode line update is done in that function. I guess that should be moved to gdb-get-source-file ? In GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6) of 2011-11-20 on skywalker Windowing system distributor `The X.Org Foundation', version 11.0.11004000 configured using `configure '--prefix=/home/kvaneesh/bin-local/emacs/'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IN value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m g d b - c r e c r e C-g M-x f i n d - f u g d b - i n i t - 1 C-s g d b - c r e a t e - s o u r c e C-SPC M-w M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit uncompressing gdb-mi.el.gz...done Mark saved where search started Mark set Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader help-mode easymenu view multi-isearch jka-compr find-func emacsbug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Thu Sep 11 11:35:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10087: 24.0.91; gdb-create-source-file-list and the documented behaviour References: <87bos6hg75.fsf@linux.vnet.ibm.com> In-Reply-To: <87bos6hg75.fsf@linux.vnet.ibm.com> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Dec 2011 08:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Aneesh Kumar K.V" Cc: 10087@debbugs.gnu.org Received: via spool by 10087-submit@debbugs.gnu.org id=B10087.132488811115582 (code B ref 10087); Mon, 26 Dec 2011 08:29:01 +0000 Received: (at 10087) by debbugs.gnu.org; 26 Dec 2011 08:28:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5v4-00043G-4z for submit@debbugs.gnu.org; Mon, 26 Dec 2011 03:28:30 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5v1-000439-OA for 10087@debbugs.gnu.org; Mon, 26 Dec 2011 03:28:28 -0500 Received: from [155.69.16.4] (port=38713 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rf5sW-000878-5U; Mon, 26 Dec 2011 03:25:52 -0500 From: Chong Yidong Date: Mon, 26 Dec 2011 16:25:45 +0800 Message-ID: <874nwnyc1i.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > Don't we need to conditionalize gdb-get-source-file-list call ? Also > "ready" mode line update is done in that function. I guess that should > be moved to gdb-get-source-file ? IIUC, this was the bug that Nick was fixing in the following checkin, so I'm closing it. If it's not, please reopen. Thanks. revno: 106530 committer: Nick Roberts branch nick: trunk timestamp: Sun 2011-11-27 21:33:25 +1300 message: progmodes/gdb-mi.el (gdb-init-1): Condition execution of gdb-get-source-file-list on gdb-create-source-file-list. === modified file 'lisp/progmodes/gdb-mi.el' *** lisp/progmodes/gdb-mi.el 2011-11-20 19:35:27 +0000 --- lisp/progmodes/gdb-mi.el 2011-11-27 08:33:25 +0000 *************** *** 873,885 **** (gdb-input (list "-gdb-set non-stop 1" 'gdb-non-stop-handler))) ;; 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))) (gdb-input (list "-gdb-show prompt" 'gdb-get-prompt))) --- 873,885 ---- (gdb-input (list "-gdb-set non-stop 1" 'gdb-non-stop-handler))) ;; find source file and compilation directory here (if gdb-create-source-file-list (gdb-input + ; Needs GDB 6.2 onwards. + (list "-file-list-exec-source-files" 'gdb-get-source-file-list))) + (gdb-input ; Needs GDB 6.0 onwards. ! (list "-file-list-exec-source-file" 'gdb-get-source-file)) (gdb-input (list "-gdb-show prompt" 'gdb-get-prompt))) From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 26 03:28:57 2011 Received: (at control) by debbugs.gnu.org; 26 Dec 2011 08:28:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5vV-00043s-10 for submit@debbugs.gnu.org; Mon, 26 Dec 2011 03:28:57 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5vT-00043l-7R for control@debbugs.gnu.org; Mon, 26 Dec 2011 03:28:55 -0500 Received: from [155.69.16.4] (port=38714 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rf5sy-0008A3-L0 for control@debbugs.gnu.org; Mon, 26 Dec 2011 03:26:21 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 10087 Date: Mon, 26 Dec 2011 16:26:15 +0800 Message-ID: <87d3bb7n88.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) close 10087 24.0.93 thanks From unknown Thu Sep 11 11:35:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10087: 24.0.91; gdb-create-source-file-list and the documented behaviour Resent-From: "Aneesh Kumar K.V" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Dec 2011 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: 10087@debbugs.gnu.org Received: via spool by 10087-submit@debbugs.gnu.org id=B10087.13249900626614 (code B ref 10087); Tue, 27 Dec 2011 12:48:01 +0000 Received: (at 10087) by debbugs.gnu.org; 27 Dec 2011 12:47:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RfWRQ-0001ib-4h for submit@debbugs.gnu.org; Tue, 27 Dec 2011 07:47:41 -0500 Received: from e9.ny.us.ibm.com ([32.97.182.139]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RfWRN-0001iU-Jh for 10087@debbugs.gnu.org; Tue, 27 Dec 2011 07:47:38 -0500 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <10087@debbugs.gnu.org> from ; Tue, 27 Dec 2011 07:44:48 -0500 Received: from d01relay04.pok.ibm.com (9.56.227.236) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 27 Dec 2011 07:44:47 -0500 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBRCikXr334674 for <10087@debbugs.gnu.org>; Tue, 27 Dec 2011 07:44:46 -0500 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBRCikua003046 for <10087@debbugs.gnu.org>; Tue, 27 Dec 2011 05:44:46 -0700 Received: from skywalker.linux.vnet.ibm.com ([9.124.88.67]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pBRCicPf002428; Tue, 27 Dec 2011 05:44:42 -0700 From: "Aneesh Kumar K.V" In-Reply-To: <874nwnyc1i.fsf@gnu.org> References: <874nwnyc1i.fsf@gnu.org> User-Agent: Notmuch/0.10.2+110~g3b54f44 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 27 Dec 2011 18:14:30 +0530 Message-ID: <87aa6efakx.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii x-cbid: 11122712-7182-0000-0000-00000074A973 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) On Mon, 26 Dec 2011 16:25:45 +0800, Chong Yidong wrote: > > Don't we need to conditionalize gdb-get-source-file-list call ? Also > > "ready" mode line update is done in that function. I guess that should > > be moved to gdb-get-source-file ? > > IIUC, this was the bug that Nick was fixing in the following checkin, so > I'm closing it. If it's not, please reopen. Thanks. > > revno: 106530 > committer: Nick Roberts > branch nick: trunk > timestamp: Sun 2011-11-27 21:33:25 +1300 > message: > progmodes/gdb-mi.el (gdb-init-1): Condition execution of > gdb-get-source-file-list on gdb-create-source-file-list. > > === modified file 'lisp/progmodes/gdb-mi.el' > *** lisp/progmodes/gdb-mi.el 2011-11-20 19:35:27 +0000 > --- lisp/progmodes/gdb-mi.el 2011-11-27 08:33:25 +0000 > *************** > *** 873,885 **** > (gdb-input (list "-gdb-set non-stop 1" 'gdb-non-stop-handler))) > > ;; 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))) > (gdb-input > (list "-gdb-show prompt" 'gdb-get-prompt))) > > --- 873,885 ---- > (gdb-input (list "-gdb-set non-stop 1" 'gdb-non-stop-handler))) > > ;; find source file and compilation directory here > (if gdb-create-source-file-list > (gdb-input > + ; Needs GDB 6.2 onwards. > + (list "-file-list-exec-source-files" 'gdb-get-source-file-list))) > + (gdb-input > ; Needs GDB 6.0 onwards. > ! (list "-file-list-exec-source-file" 'gdb-get-source-file)) > (gdb-input > (list "-gdb-show prompt" 'gdb-get-prompt))) > > It still miss the part where gdb prompt get updated properly. -aneesh From unknown Thu Sep 11 11:35:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10087: 24.0.91; gdb-create-source-file-list and the documented behaviour Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Dec 2011 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Aneesh Kumar K.V" Cc: 10087@debbugs.gnu.org Received: via spool by 10087-submit@debbugs.gnu.org id=B10087.13250500042512 (code B ref 10087); Wed, 28 Dec 2011 05:27:02 +0000 Received: (at 10087) by debbugs.gnu.org; 28 Dec 2011 05:26:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rfm2F-0000eT-TL for submit@debbugs.gnu.org; Wed, 28 Dec 2011 00:26:44 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rfm2E-0000eM-0f for 10087@debbugs.gnu.org; Wed, 28 Dec 2011 00:26:42 -0500 Received: from [155.69.18.215] (port=34401 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RflzZ-0006Ml-RY; Wed, 28 Dec 2011 00:23:58 -0500 From: Chong Yidong References: <874nwnyc1i.fsf@gnu.org> <87aa6efakx.fsf@linux.vnet.ibm.com> Date: Wed, 28 Dec 2011 13:23:50 +0800 In-Reply-To: <87aa6efakx.fsf@linux.vnet.ibm.com> (Aneesh Kumar K. V.'s message of "Tue, 27 Dec 2011 18:14:30 +0530") Message-ID: <8762h1s1zt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) "Aneesh Kumar K.V" writes: > It still miss the part where gdb prompt get updated properly. Fixed, thanks.