From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10452 invoked by alias); 11 Jan 2010 20:26:44 -0000 Received: (qmail 10428 invoked by uid 22791); 11 Jan 2010 20:26:43 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from trinity.develer.com (HELO trinity.develer.com) (83.149.158.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jan 2010 20:26:35 +0000 Received: (qmail 10317 invoked from network); 11 Jan 2010 20:26:30 -0000 Received: from terminus-est.gnu.org (HELO ?192.168.0.245?) (bernie@66.92.78.210) by trinity.develer.com with ESMTPA; 11 Jan 2010 20:26:30 -0000 Subject: [SOLVED] Re: Debugging X with GDB From: Bernie Innocenti To: Jonathan Morton Cc: Daniel Jacobowitz , dclark , xorg-devel@lists.x.org, rms@gnu.org, gdb@sourceware.org In-Reply-To: <1263219976.15247.81.camel@localhost.localdomain> References: <1263170536.29695.86.camel@giskard> <20100111140155.GD428@caradoc.them.org> <1263219976.15247.81.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" Date: Mon, 11 Jan 2010 20:26:00 -0000 Message-ID: <1263241586.2695.56.camel@giskard> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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/msg00116.txt.bz2 On Mon, 2010-01-11 at 16:26 +0200, Jonathan Morton wrote: > A good trick might be to run X+gdb via SSH or a serial console. This > is then immune to VT switching semantics. This is how I'm currently debugging, but X unconditionally cripples the console even if it's a pty. ... Wait, I've found a workaround! There's a specific option: -keeptty don't detach controlling tty (for debugging only) That's cool, but I guess we should document it very prominently in the wiki: http://www.x.org/wiki/Development/Documentation/ServerDebugging -- // Bernie Innocenti - http://codewiz.org/ \X/ Sugar Labs - http://sugarlabs.org/