[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: =?gb2312?b?tPC4tDogaG93IHRvIHRyYWNlIHRoZSBjb2RlIG9mIFhvcmcg?=
From:       Egbert Eich <eich () suse ! de>
Date:       2007-02-28 20:02:02
Message-ID: 17893.57274.884927.834499 () wlan-hermes ! suse ! de
[Download RAW message or body]


LongdaFeng@viatech.com.cn writes:
 > 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 ??

You need to use a debug version. Released versions don't contain
any debug info.
If your debug library you've built is in the directory path /foo/bar
the easiest way to do this is to do a
export LD_LIBRARY_PATH=/foo/bar
You can use ldd to check which libs are used. If your binary is 
called 'xfoo', just do:
ldd xfoo 
in the directory where xfoo lives.

Regards,
	Egbert.


 > 
 > THANK YOU VERY MUCH !!!!
 > 
 > -----$ASJ<~T-<~(B-----
 > $A7"<~HK(B: xorg-bounces@lists.freedesktop.org \
[mailto:xorg-bounces@lists.freedesktop.org] $A4z1m(B Egbert Eich  > $A7"KMJ1<d(B: \
Wednesday, February 28, 2007 5:36 PM  > $AJU<~HK(B: Longda Feng
 > $A3-KM(B: xorg@lists.freedesktop.org
 > $AVwLb(B: Re: how to trace the code of Xorg from the application
 > 
 > LongdaFeng@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@lists.freedesktop.org
 > http://lists.freedesktop.org/mailman/listinfo/xorg
 > 
 > _______________________________________________
 > xorg mailing list
 > xorg@lists.freedesktop.org
 > http://lists.freedesktop.org/mailman/listinfo/xorg


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic