all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de
To: "A. Soare" <alinsoar@voila.fr>
Cc: rms@gnu.org, "Emacs   Dev  \[emacs-devel\]" <emacs-devel@gnu.org>
Subject: Re: GDB does not stop in breakpoint!
Date: Thu, 14 Jan 2010 14:30:52 +0100	[thread overview]
Message-ID: <20100114133052.GC18758@tomas> (raw)
In-Reply-To: <21632016.662061263458971470.JavaMail.www@wwinf4630>

-----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	other threads:[~2010-01-14 13:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-14  8:49 GDB does not stop in breakpoint! A. Soare
2010-01-14 13:30 ` tomas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-01-18  8:01 A. Soare
2010-01-14  8:36 A. Soare
2010-01-11  8:23 alin.s
2010-01-11 10:00 ` alin.s
2010-01-11 10:24   ` alin.s
2010-01-11 10:52     ` alin.s
2010-01-11 11:41     ` Jan Djärv
2010-01-11 11:59       ` alin.s
2010-01-12 10:03     ` Richard Stallman
2010-01-12 10:03   ` Richard Stallman
2010-01-12 18:49     ` Tom Tromey
2010-01-12 10:03 ` Richard Stallman
2010-01-17 17:36   ` alin.s
2010-01-17 18:47     ` Chong Yidong
2010-01-12 10:03 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100114133052.GC18758@tomas \
    --to=tomas@tuxteam.de \
    --cc=alinsoar@voila.fr \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.