[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-x gdb with large files

From: Klaus Zeitler
Subject: Re: M-x gdb with large files
Date: Tue, 30 May 2006 08:55:56 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v)

>>>>> "Nick" == Nick Roberts <address@hidden> writes:
    >> BTW there must be a new problem with the newest CVS version. A call like:
    >> M-x gdb -> gdb --annotate=3 umc.vx
    >> gives me the following error (taken from *Messages*):
    Nick> Is it a new problem? i.e. did it work previously?

Yes and yes

    >> I could trace this down to the following lines in my .emacs file:
    >> (eval-after-load "gdb-ui"
    >> '(progn
    >> (message "Configuring gdb-ui")
    >> ;(setq gdb-show-main t)
    >> ;(setq gdb-many-windows t)
    >> ;(setq gdb-use-separate-io-buffer t)
    >> ))
    Nick> I think you should do:
    Nick> (add-hook 'gdb-mode-hook 
    Nick>           '(lambda ()
    Nick>            (message "Configuring gdb-ui")
    Nick>            (setq gdb-show-main t)
    Nick>            (setq gdb-many-windows t)
    Nick>            (setq gdb-use-separate-io-buffer t)))

Yes I know that there are different ways to configure the variables for
gdb-ui. But I believe that this simple eval-after-load (especially with all
settings commented out) shouldn't break gdb. Besides why should I do it in a
hook that is run every time I call gdb, when configuring it once should be


|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
I never learned anything while I was talking. - Anonymous

reply via email to

[Prev in Thread] Current Thread [Next in Thread]