From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: GDB does not stop in breakpoint! Date: Thu, 14 Jan 2010 14:30:52 +0100 Message-ID: <20100114133052.GC18758@tomas> References: <21632016.662061263458971470.JavaMail.www@wwinf4630> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263476570 29467 80.91.229.12 (14 Jan 2010 13:42:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2010 13:42:50 +0000 (UTC) Cc: rms@gnu.org, "Emacs Dev \[emacs-devel\]" To: "A. Soare" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 14 14:42:43 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVPyE-0002yH-Jf for ged-emacs-devel@m.gmane.org; Thu, 14 Jan 2010 14:42:42 +0100 Original-Received: from localhost ([127.0.0.1]:54120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVPyE-00082e-TG for ged-emacs-devel@m.gmane.org; Thu, 14 Jan 2010 08:42:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVPy7-00081r-44 for emacs-devel@gnu.org; Thu, 14 Jan 2010 08:42:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVPy2-00080j-Og for emacs-devel@gnu.org; Thu, 14 Jan 2010 08:42:34 -0500 Original-Received: from [199.232.76.173] (port=35821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVPy2-00080S-3B for emacs-devel@gnu.org; Thu, 14 Jan 2010 08:42:30 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:15605) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVPxi-0007qs-7T; Thu, 14 Jan 2010 08:42:10 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104] helo=www.elogos.de) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVPpE-0003hF-G9; Thu, 14 Jan 2010 08:33:24 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id D3BB79006A; Thu, 14 Jan 2010 14:30:52 +0100 (CET) Content-Disposition: inline In-Reply-To: <21632016.662061263458971470.JavaMail.www@wwinf4630> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119988 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Jan 14, 2010 at 09:49:31AM +0100, A. Soare wrote: >=20 > > 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. > >=20 > > There are times, when the screen is grabbed, that stopping the progra= m > > 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. > >=20 >=20 > 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=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLTxyMBcgs9XrR2kYRAjmKAJ9QNt7lS82pV4Hfmfzkbm7Ba0s4/QCcC3Lw gvAXF80WiW3WIK6P6vVJ0z0=3D =3DYRs3 -----END PGP SIGNATURE-----