From: Sven M. H. <pe...@gm...> - 2001-07-06 09:28:51
|
On Thu, Jul 05, 2001 at 09:43:52AM -0600, Brian Paul wrote: > Allen Barnett wrote: > > > > And another question(s): How do you debug Mesa with GDB? I guess I don't > > understand how to get it to compile without optimization (a ./configure > > option?) and if I have to build and link with a static archive library > > instead of a shared object? Any tips would be helpful. > > I always use the old-style Makefiles when debugging/developing. Try this: > > cd src > make -f Makefile.X11 clean > make -f Makefile.X11 linux-debug Try: $ configure --enable-debug That should add -O0 to CFLAGS if you're using GCC. If you're using a different compiler, tell me which flag you need for debugging code, and I'll add it. -Sven -- "Would the All-Seeing Eye please look in my direction?" [ KeyID........: 0xC297FEAB ] [ Fingerprint..: FEA5 0F93 7320 3F39 66A5 AED3 073F 2D5F C297 FEAB ] |