Building debug symbols

Alexander Gottwald alexander.gottwald@s1999.tu-chemnitz.de
Mon Dec 13 15:41:00 GMT 2004


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



More information about the Cygwin-xfree mailing list