This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Building debug symbols
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 13 Dec 2004 16:41:14 +0100 (MET)
- Subject: Re: Building debug symbols
- References: <1102951524.3e62e5a0sebastianhaby@home.se>
- Reply-to: cygwin-xfree at cygwin dot com
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