emacs-devel
[Top][All Lists]
Advanced

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

Re: Breakpoint ignored.


From: Stefan Monnier
Subject: Re: Breakpoint ignored.
Date: Sun, 18 Oct 2009 10:39:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>> C-h k á says `self-insert-command' is invoked, wich is a built-in
>> function. So I follow the link to the source code to learn that the C
>> function is Fself_insert_command, then invoke emacs and set a breakpoint
>> on it, but gdb does not stop when a character is typed (and displayed),
>> as if no breakpoint was active.
>> 
>> What I'm missing?

> You are probably missing the fact that Emacs tries to optimize the
> case of insertion of a single character.  See this part of keyboard.c:

Note also that you can remove this whole `if' if you want.  It's only
meant to be an optimization, so before trying to fix/debug the optimized
code, try and see if the problem manifests itself in the
non-optimized code.


        Stefan




reply via email to

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