[SOLVED] Re: Debugging X with GDB

Bernie Innocenti bernie at codewiz.org
Mon Jan 11 12:26:26 PST 2010


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/





More information about the xorg-devel mailing list