From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "alin.s" Newsgroups: gmane.emacs.devel Subject: Re: GDB does not stop in breakpoint! Date: Sun, 17 Jan 2010 09:36:51 -0800 (PST) Message-ID: <27200967.post@talk.nabble.com> References: <27107078.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263749830 27502 80.91.229.12 (17 Jan 2010 17:37:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2010 17:37:10 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 17 18:37:03 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 1NWZ3e-0008IB-Mg for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 18:37:03 +0100 Original-Received: from localhost ([127.0.0.1]:57396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWZ3f-00055T-HV for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 12:37:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWZ3b-00054d-30 for emacs-devel@gnu.org; Sun, 17 Jan 2010 12:36:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWZ3W-000503-JV for Emacs-devel@gnu.org; Sun, 17 Jan 2010 12:36:58 -0500 Original-Received: from [199.232.76.173] (port=35588 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWZ3W-0004zw-AW for Emacs-devel@gnu.org; Sun, 17 Jan 2010 12:36:54 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:41134) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWZ3V-0002Ad-OZ for Emacs-devel@gnu.org; Sun, 17 Jan 2010 12:36:53 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NWZ3T-0001dh-VV for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:36:51 -0800 In-Reply-To: X-Nabble-From: alinsoar@voila.fr X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:120167 Archived-At: Now I reply the experiment on some unpatched sources, and here is a sure way to reproduce the "bug" (if it'sa bug) 1. breakpoint in Fx_create_frame 2. run emacs and block X-windows. 3. from a console kill gdb 4. when I return in X, emacs is running , and gdb that started it is dead. If somebody can explain me in detail what happens when X blocks, please explain me. debian:/emacs-gtk/src# gdb ./emacs GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x8147e63: file emacs.c, line 431. Breakpoint 2 at 0x8168760: file sysdep.c, line 1132. (gdb) break Fx_create_frame Breakpoint 3 at 0x811ef98: file xfns.c, line 3129. (gdb) r -Q Starting program: /emacs-gtk/src/emacs -Q [Thread debugging using libthread_db enabled] [New Thread 0xb725d8c0 (LWP 4971)] [Switching to Thread 0xb725d8c0 (LWP 4971)] Breakpoint 3, Fx_create_frame (parms=139100246) at xfns.c:3129 3129 int minibuffer_only = 0; (gdb) Killed debian:/emacs-gtk/src# Richard Stallman 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. > > Most of the code inside Fx_create_frame is NOT in the middle of a > grab, and this problem should not happen in those places. > > Can you connect from another machine with ssh and run gdb from > the other machine? > > > > -- View this message in context: http://old.nabble.com/GDB-does-not-stop-in-breakpoint%21-tp27107078p27200967.html Sent from the Emacs - Dev mailing list archive at Nabble.com.