From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 932 invoked by alias); 11 Jan 2010 14:02:08 -0000 Received: (qmail 615 invoked by uid 22791); 11 Jan 2010 14:02:07 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jan 2010 14:01:59 +0000 Received: (qmail 4335 invoked from network); 11 Jan 2010 14:01:58 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Jan 2010 14:01:58 -0000 Date: Mon, 11 Jan 2010 14:02:00 -0000 From: Daniel Jacobowitz To: Bernie Innocenti Cc: rms@gnu.org, dclark , gdb@sourceware.org, xorg-devel@lists.x.org Subject: Re: Debugging X with GDB Message-ID: <20100111140155.GD428@caradoc.them.org> Mail-Followup-To: Bernie Innocenti , rms@gnu.org, dclark , gdb@sourceware.org, xorg-devel@lists.x.org References: <1263170536.29695.86.camel@giskard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1263170536.29695.86.camel@giskard> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00108.txt.bz2 On Sun, Jan 10, 2010 at 07:42:16PM -0500, Bernie Innocenti wrote: > I think X might change TTY state and piss gdb off I'd imagine this is it, but it's impossible to tell without debugging the TTY state. When you hit ^C, that doesn't necessarily cause anything to happen. The TTY subsystem sees ^C, and may or may not generate a SIGINT to the foreground process group depending on the tty settings; try checking using stty -F, for instance. Then the foreground process group is X, not GDB; if the SIGINT is blocked or ignored, it won't be delivered, so GDB can't intercept it at delivery. Using ^C is not always reliable. -- Daniel Jacobowitz CodeSourcery