答复: how to trace the code of Xorg from the application

LongdaFeng at viatech.com.cn LongdaFeng at viatech.com.cn
Wed Feb 28 03:15:52 PST 2007


First, thank you very much!

In fact, at first I use -g not -g0, but even I use -g flag, the ddd can't debug the XextAddDisplay.
I think the libXext.so.6 is a release version, not a debug version.
And I check the MAKEFINE in the xc/lib/Xext

    CXXDEBUGFLAGS = -O0 -g0 -march=pentium3 -pipe
    CDEBUGFLAGS = -O0 -g0 -march=pentium3 -pipe
    CCOPTIONS = -ansi -Wall -Wpointer-arith -Wundef

I wonder why I can't debug the the XextAddDisplay function ??

THANK YOU VERY MUCH !!!!

-----邮件原件-----
发件人: xorg-bounces at lists.freedesktop.org [mailto:xorg-bounces at lists.freedesktop.org] 代表 Egbert Eich
发送时间: Wednesday, February 28, 2007 5:36 PM
收件人: Longda Feng
抄送: xorg at lists.freedesktop.org
主题: Re: how to trace the code of Xorg from the application

LongdaFeng at viatech.com.cn writes:
 > Hi everyone:
 > 
 >          First, any advice is appreciated!
 > 
 >  
 > 
 >          Recently, I run doom3-demo, it failed on the function
 > XextAddDisplay which is in libXext.so.6(it lie in the xc/lib/Xext), I
 > use gdb&ddd on two pc,
 > 
 >          I can add breakpoint in the function XextAddDisplay ,but the
 > ddd can't debug the function of XextAddDisplay
 > 

This seems to indicate that either you have not built this part of Xt 
with "-g" or something in your build process has stripped this info off.

 >  
 > 
 >          Addition: I run on Xorg6.9, the host.def is as attachment . I
 > build the Xorg with -g flag in the host.def
 > 
 > #define DefaultGcc2i386Opt   -O0 -g0 -march=pentium3 -pipe
                                    ^^^
Please take out the '0'. I'm not sure what level 0 actually means but
smaller numbers usually include less debugging information. 2 is the
default. I'd suggest you leave it there and just do '-g'.

Cheers,
	Egbert.
_______________________________________________
xorg mailing list
xorg at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg




More information about the xorg mailing list