how to debug Xserver Module?

余涛 tyu_zju at 163.com
Tue Nov 28 04:31:05 PST 2006


Hi:
	
	Thanks, I know startx is a script file. 
     My step is: 1) startx in the console 
				 2) when FC4 enter into the x windows and then in the other
					PC use ssh to login 
 				 3) gdb /usr/X11/bin/X $(/sbin/pidof X)
    From the steps, i didn't know how to postpone activating other modules 
after awaking the Xserver, because i use startx script to load all modules 
at one time;


Also many thanks	


>Hi:
>Below are my ideas and I didn't try them yet.
>As far as I know startx is a script file, and you may postpone activating
>other modules after awaking the Xserver.
>1. build the modules with debug option.
>2. activate them in xterm.
>Something like that.
>I have heard some of my friends make it work while debugging some 3D testing
>program.
>
>Hope this will help you
>Pierre
>
>-----Original Message-----
>From: xorg-bounces at lists.freedesktop.org
>[mailto:xorg-bounces at lists.freedesktop.org] On Behalf Of 余?
>Sent: Tuesday, November 28, 2006 4:37 PM
>To: xorg
>Subject: how to debug Xserver Module?
>
>hi everyone:
>
>	Recently, i'm debugging Xserver with two PCs, the system of target
>pc is FedoraCore4
>with Xorg 6.8.2 installed, and now i knew how to debug Xserver, but i didn't
>know how to 
>debug the modules loaded by startx. 
>	I have read ./Xserver/hw/xfree86/DebuggingHints and didn't find the
>patches to gdb to 
>add support for loadable modules, for the web site i can't link :
>		www.dawa.demon.co.uk/xfree-gdb
>
>	now my gdb version is 6.3.0.0-1.21rh,  i wanted the patches for 6.3.
>0.0-1.21rh, or maybe
>6.0 is also ok;  
>	
>
>	I hope somebody can understand my confuse problem (in my poor
>english).
>
>thanks for your help!
>
>
>__________
>
>little bird
>
>
>_______________________________________________
>xorg mailing list
>xorg at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/xorg






More information about the xorg mailing list