emacs-devel
[Top][All Lists]
Advanced

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

Re: GDB does not stop in breakpoint!


From: tomas
Subject: Re: GDB does not stop in breakpoint!
Date: Thu, 14 Jan 2010 14:30:52 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jan 14, 2010 at 09:49:31AM +0100, A. Soare wrote:
> 
> >     I put a breakpoint in Fx_create_frame. When I start emacs using "r" , 
> > the
> >     breakpoint is never reached, and the X windows stops responding.
> > 
> > There are times, when the screen is grabbed, that stopping the program
> > would cause X not to respond.  If you have put the breakpoint at a
> > line which is in the middle of a grab, that would explain this.
> > 
> 
> What means that the screen to be grabbed? How does this happen?

That's when the program tells the X server "now give me all events until
I tell you". If the program doesn't react to events (e.g. in a tight
loop) and doesn't release the screen grab, the X sever seems to hang.

Grabs are useful whenwaiting for example for a menu choice to finish
(when the user clicks on the menu, it "opens" and then the program
usually grabs the screen until a choice is made or the menu click is
cancelled).

See, for example the manual pages of XGrabServer, XGrabPointer,
XGrabKeyboard and so on.

Grabs are often used for those all-horrible modal windows which seem to
be becoming en-vogue these days. But I disgress.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLTxyMBcgs9XrR2kYRAjmKAJ9QNt7lS82pV4Hfmfzkbm7Ba0s4/QCcC3Lw
gvAXF80WiW3WIK6P6vVJ0z0=
=YRs3
-----END PGP SIGNATURE-----




reply via email to

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