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
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org           ICQ: 126018723

Reply via email to