emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: gud-tooltip-mode: gdb-prompt: Wrong number of arguments


From: Klaus Zeitler
Subject: Re: gud-tooltip-mode: gdb-prompt: Wrong number of arguments
Date: Fri, 19 May 2006 15:11:40 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v)

>>>>> "Nick" == Nick Roberts <address@hidden> writes:
    Nick> 
    Nick> Are you suggesting that I remove one so that the user isn't confused?

The problem is that both commands gdb and gdba print the same command in
the mini-buffer. I think a user would accept/understand that
"M-x gdb -> gdb --annotate=3" and "M-x gdb -> gdb --fullname"
behave differently. 
But now we have "M-x gdba -> gdb --annotate=3 <image> core"
which works and "M-x gdb -> gdb --annotate=3 <image> core"
that doesn't work.
Besides it's incompatible to older emacs versions and how the user would
call gdb in the shell.

    >> BTW when I strip "source " from the filename by adding:
    >> (if (and file (string-match "^source " file))
    >> (setq file (replace-match "" t t file)))

    Nick> You can use that as a local patch, if you like, but I don't want to
    Nick> install such a hack.  What happens if the file is called  "source
    Nick> filenames can have spaces.c" for example?

Very unlikely IMHO: no directory, white space in filename and "source" as
first part of the filename. I make that a defadvice for me.

    Nick> Yes, the new interface is too inefficient at times.  Its an ongoing
    Nick> process, but after the release (we're already two years nearer than
    Nick> we were two years ago),

the real question is not how much nearer, but how far away :-(.

    Nick> Well it's caused by the way Emacs uses the annotations.  Maybe it
    Nick> could be done better, but its the best that I could do.  For such a
    Nick> large image and core you're probably better off using "gdb
    Nick> -fullname".

I guess I have to go back to --fullname and wait for GDB/MI.
Thanks for your detailed explanations.

Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
Committee, n.:  A group of men who individually can do
nothing but as a group decide that nothing can be done.




reply via email to

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