all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gud slowness?
@ 2011-01-26 20:36 joakim
  2011-01-27  2:30 ` Miles Bader
  2011-01-27  3:48 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: joakim @ 2011-01-26 20:36 UTC (permalink / raw)
  To: Emacs developers

I'm debugging Inkscape with gud, but its so slow as to be unusable.
Plain gdb debugging is not so slow.

Is this to be expected with trunk emacs or should I make a bug report?
-- 
Joakim Verona



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-26 20:36 gud slowness? joakim
@ 2011-01-27  2:30 ` Miles Bader
  2011-01-27  3:59   ` Stefan Monnier
  2011-01-27  3:59   ` Eli Zaretskii
  2011-01-27  3:48 ` Eli Zaretskii
  1 sibling, 2 replies; 8+ messages in thread
From: Miles Bader @ 2011-01-27  2:30 UTC (permalink / raw)
  To: joakim; +Cc: Emacs developers

joakim@verona.se writes:
> I'm debugging Inkscape with gud, but its so slow as to be unusable.
> Plain gdb debugging is not so slow.
>
> Is this to be expected with trunk emacs or should I make a bug report?

I usually use "M-x gud-gdb" instead of "M-x gdb".

The former uses the old-style emacs gdb interface, and in general seems
to be much more usable and less buggy than the "new" emacs gdb code.

[This situation has been true basically as long as the new code has been
in emacs (~4 years?), and I've seen little indication that this is going
to change soon.]

-Miles

-- 
Scriptures, n. The sacred books of our holy religion, as distinguished from
the false and profane writings on which all other faiths are based.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-26 20:36 gud slowness? joakim
  2011-01-27  2:30 ` Miles Bader
@ 2011-01-27  3:48 ` Eli Zaretskii
  2011-01-27  7:35   ` joakim
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2011-01-27  3:48 UTC (permalink / raw)
  To: joakim; +Cc: emacs-devel

> From: joakim@verona.se
> Date: Wed, 26 Jan 2011 21:36:08 +0100
> 
> I'm debugging Inkscape with gud, but its so slow as to be unusable.
> Plain gdb debugging is not so slow.

Can you give some numbers?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-27  2:30 ` Miles Bader
@ 2011-01-27  3:59   ` Stefan Monnier
  2011-01-27  3:59   ` Eli Zaretskii
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2011-01-27  3:59 UTC (permalink / raw)
  To: Miles Bader; +Cc: joakim, Emacs developers

>> I'm debugging Inkscape with gud, but its so slow as to be unusable.
>> Plain gdb debugging is not so slow.
>> Is this to be expected with trunk emacs or should I make a bug report?

> I usually use "M-x gud-gdb" instead of "M-x gdb".

Same here.


        Stefan



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-27  2:30 ` Miles Bader
  2011-01-27  3:59   ` Stefan Monnier
@ 2011-01-27  3:59   ` Eli Zaretskii
  2011-01-27  9:14     ` Andreas Schwab
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2011-01-27  3:59 UTC (permalink / raw)
  To: Miles Bader; +Cc: joakim, emacs-devel

> From: Miles Bader <miles@gnu.org>
> Date: Thu, 27 Jan 2011 11:30:35 +0900
> Cc: Emacs developers <emacs-devel@gnu.org>
> 
> I usually use "M-x gud-gdb" instead of "M-x gdb".
> 
> The former uses the old-style emacs gdb interface, and in general seems
> to be much more usable and less buggy than the "new" emacs gdb code.
> 
> [This situation has been true basically as long as the new code has been
> in emacs (~4 years?), and I've seen little indication that this is going
> to change soon.]

The old interface uses a GDB feature that's deprecated in GDB and can
disappear at any time.  So if there are serious problems with the
"new" gdb support code, we had better invest some effort into fixing
it.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-27  3:48 ` Eli Zaretskii
@ 2011-01-27  7:35   ` joakim
  0 siblings, 0 replies; 8+ messages in thread
From: joakim @ 2011-01-27  7:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: joakim@verona.se
>> Date: Wed, 26 Jan 2011 21:36:08 +0100
>> 
>> I'm debugging Inkscape with gud, but its so slow as to be unusable.
>> Plain gdb debugging is not so slow.
>
> Can you give some numbers?

Ok. My machine is a fairly current core i7 laptop, Fedora x86_64 gnu/linux, 6gb
ram.

Plain gdb at a shell prompt and m-x gud-gdb are swift.

m-x gdb takes about a minute to initialize. Then I step a couple of
times through the debugger, and emacs eventually hangs. Not completely
as it still responds sluggishly to c-g. emacs continues to both slow
though.

It seems like Emacs is buzy-polling the subprocess but does it much too
quikly.

Incidently I have a similar issue with my own inkmacs.el bridge
to inkscape. Emacs is supposed to wait 10 seconds between polls, but
doesnt, so the loop is too fast, sinking the machine as a result.

-- 
Joakim Verona



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-27  3:59   ` Eli Zaretskii
@ 2011-01-27  9:14     ` Andreas Schwab
  2011-01-27  9:49       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2011-01-27  9:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel, joakim, Miles Bader

Eli Zaretskii <eliz@gnu.org> writes:

> The old interface uses a GDB feature that's deprecated in GDB and can
> disappear at any time.

For any in approximately never.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gud slowness?
  2011-01-27  9:14     ` Andreas Schwab
@ 2011-01-27  9:49       ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2011-01-27  9:49 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel, joakim, miles

> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Miles Bader <miles@gnu.org>,  joakim@verona.se,  emacs-devel@gnu.org
> Date: Thu, 27 Jan 2011 10:14:21 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > The old interface uses a GDB feature that's deprecated in GDB and can
> > disappear at any time.
> 
> For any in approximately never.

If we are okay with this approximation, then IMO we should switch
"M-x gdb" back to use annotations.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-27  9:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-26 20:36 gud slowness? joakim
2011-01-27  2:30 ` Miles Bader
2011-01-27  3:59   ` Stefan Monnier
2011-01-27  3:59   ` Eli Zaretskii
2011-01-27  9:14     ` Andreas Schwab
2011-01-27  9:49       ` Eli Zaretskii
2011-01-27  3:48 ` Eli Zaretskii
2011-01-27  7:35   ` joakim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.