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 10:17:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v)

>>>>> "Nick" == Nick Roberts <address@hidden> writes:
    Nick> 
    Nick> I can suggest two workarounds:
    Nick> 
    Nick> 1) Specify the core file later:
    Nick> 
    Nick>    Run gdb (like this): gdb --annotate=3 emacs
    Nick> 
    Nick>    Then in the GUD buffer:
    Nick> 
    Nick>    (gdb) core ~/emacs/src/core.3491
    Nick> 
    Nick> 2) Use 'M-x gdba', which should work how you want but won't give you
    Nick>    the old behaviour.

Yes both your 2 suggested methods work fine, but this doesn't look like
a consistent user interface.

Not sure what you mean with old behaviour. Should I see a difference (as
long I don't set gdb-many-windows) between "M-x gdb" and "M-x gdba". Both start
by printing "gdb -annotate=3 <image-name>" and then give me a gdb and a source
window. 

Isn't that confusing for the user when "gdb -annotate=3 <image-name> core"
works in one case, but not the other?

BTW when I strip "source " from the filename by adding:
  (if (and file (string-match "^source " file))
      (setq file (replace-match "" t t file)))
to the beginning gud-find-file, I can call gdb the usual way, i.e. with
<image> and core like I would do in the shell.

I also have serious performance issues with the new gdb interface, e.g.
 gdb --fullname <image-name> core
and then "up" or "bt" in gdb takes a bit more than 20 seconds, whereas
 gdba -annotate=3 <image-name> core
and then "up" or "bt" needs 2 and a half minutes.
This is almost certainly not an emacs problem, but seems to be caused by
the --annotate=3 option for gdb and of course our image size (125 MB and
155 for the core file).

Does "--annotate" even make sense when analyzing a core?

Klaus


-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
The purpose of a windowing system is to put some amusing
fluff around your one almighty emacs window.




reply via email to

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