Module: Mesa
Branch: gallium-0.2
Commit: 3d607ef37fdfa0871096c99674af92278f33246b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d607ef37fdfa0871096c99674af92278f33246b

Author: José Fonseca <jfons...@vmware.com>
Date:   Mon Jan 26 20:16:36 2009 +0000

scons: Request the stabs debug info format for Mingw.

Mingw gdb apparently chokes on dwarf debug info.

---

 scons/crossmingw.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scons/crossmingw.py b/scons/crossmingw.py
index 53b4d2e..bf81f16 100644
--- a/scons/crossmingw.py
+++ b/scons/crossmingw.py
@@ -173,6 +173,10 @@ def generate(env):
     env['LIBPREFIXES']    = [ 'lib', '' ]
     env['LIBSUFFIXES']    = [ '.a', '.lib' ]
 
+    # MinGW port of gdb does not handle well dwarf debug info which is the
+    # default in recent gcc versions
+    env.AppendUnique(CFLAGS = ['-gstabs'])
+
     env.AppendUnique(LIBS = ['iberty'])
     env.AppendUnique(SHLINKFLAGS = ['-Wl,--enable-stdcall-fixup'])
     #env.AppendUnique(SHLINKFLAGS = ['-Wl,--kill-at'])

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to