On 2011-07-25 15:08 +0200, lee wrote: > José Silva <[email protected]> writes: > >> Given that, I did Ctl+Alt+F1, logged in as user, sudo service gdm stop >> to stop xserver. Then sudo gdb startx but the system says it's not an >> executable. How do I run xserver in the debugger? > > Unfortunately, I don't know. I guess a way might be to start the > debugger and then attach it to the running x-server, see [1]. When the > x-server freezes, you might be able to find out what it's doing with the > debugger.
You need to do this over ssh, otherwise the X server will block the keyboard when it freezes, preventing the switch to the console where GDB runs. See http://pkg-xorg.alioth.debian.org/howto/use-gdb.html. Sven -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

