GNU bug report logs - #10087
24.0.91; gdb-create-source-file-list and the documented behaviour

Previous Next

Package: emacs;

Reported by: "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com>

Date: Sun, 20 Nov 2011 17:13:01 UTC

Severity: normal

Found in version 24.0.91

Fixed in version 24.0.93

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10087 in the body.
You can then email your comments to 10087 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10087; Package emacs. (Sun, 20 Nov 2011 17:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 20 Nov 2011 17:13:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.91; gdb-create-source-file-list and the documented behaviour
Date: Sun, 20 Nov 2011 22:41:26 +0530
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 <tab> <return> g d b - c r e 
<backspace> <backspace> <backspace> c r e <tab> <backspace> 
<backspace> C-g <C-down-mouse-2> M-x f i n d - f u 
<tab> <return> g d b - i n i <tab> t - 1 <return> <return> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <return> C-s g d b - c r e 
a t e - s o u r c e <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> C-SPC <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <left> M-w M-x r e 
p o <tab> r <tab> <return>

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)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10087; Package emacs. (Mon, 26 Dec 2011 08:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 10087 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com>
Cc: 10087 <at> debbugs.gnu.org
Subject: Re: 24.0.91; gdb-create-source-file-list and the documented behaviour
Date: Mon, 26 Dec 2011 16:25:45 +0800
> 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 <nickrob <at> snap.net.nz>
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)))
  





bug marked as fixed in version 24.0.93, send any further explanations to 10087 <at> debbugs.gnu.org and "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 26 Dec 2011 08:29:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10087; Package emacs. (Tue, 27 Dec 2011 12:48:01 GMT) Full text and rfc822 format available.

Message #13 received at 10087 <at> debbugs.gnu.org (full text, mbox):

From: "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com>
To: Chong Yidong <cyd <at> gnu.org>
Cc: 10087 <at> debbugs.gnu.org
Subject: Re: 24.0.91; gdb-create-source-file-list and the documented behaviour
Date: Tue, 27 Dec 2011 18:14:30 +0530
On Mon, 26 Dec 2011 16:25:45 +0800, Chong Yidong <cyd <at> gnu.org> 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 <nickrob <at> snap.net.nz>
> 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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10087; Package emacs. (Wed, 28 Dec 2011 05:27:02 GMT) Full text and rfc822 format available.

Message #16 received at 10087 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: "Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com>
Cc: 10087 <at> debbugs.gnu.org
Subject: Re: 24.0.91; gdb-create-source-file-list and the documented behaviour
Date: Wed, 28 Dec 2011 13:23:50 +0800
"Aneesh Kumar K.V" <aneesh.kumar <at> linux.vnet.ibm.com> writes:

> It still miss the part where gdb prompt get updated properly.

Fixed, thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 Jan 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 88 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.