This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building debug symbols


On Mon, 13 Dec 2004, Sebastian Haby wrote:

> Hey!
> I'm still tracking down that bug that makes my X crash, and I've been debugging using a debug build of XWin, however now I want to debug using a normal build but I need to know how to build a debug-symbols file to use with gdb?

Add this to xc/config/cf/host.def (this file does not exist in CVS)

#define OptimizedCDebugFlags   -ggdb3 -fno-strength-reduce -DCYGDEBUG -DCYGMULTIWINDOW_DEBUG

you can omit the -DCYGDEBUG -DCYGMULTIWINDOW_DEBUG since this only adds 
extra output to the console logging

important is the -ggdb3 since it will instruct gcc to create debug symbols


bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]