Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Any opinion about this patch? I have it in my local repo, and it helps
me when running under gdb, as gdb now knows about macros!

If nobody opposes, I propose to push it. That option is supported by
gcc 2.95.3, so should not introduce compatibility issues.

-- 
Lionel
From 4b28ea46fa6fbd414663d15f309d006e22922a29 Mon Sep 17 00:00:00 2001
From: Lionel Elie Mamane <lionel@mamane.lu>
Date: Wed, 23 Nov 2011 21:34:18 +0100
Subject: [PATCH] maximal debugging information

---
 solenv/gbuild/platform/unxgcc.mk |    4 ++--
 solenv/inc/unxgcc.mk             |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index fe2aa7e..f4af97c 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -217,8 +217,8 @@ gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR)
 gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)
 
 ifeq ($(gb_SYMBOL),$(true))
-gb_LinkTarget_CXXFLAGS += -ggdb2
-gb_LinkTarget_CFLAGS += -ggdb2
+gb_LinkTarget_CXXFLAGS += -ggdb3
+gb_LinkTarget_CFLAGS += -ggdb3
 endif
 
 # note that `cat $(extraobjectlist)` is needed to build with older gcc versions, e.g. 4.1.2 on 
SLED10
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index a3231a6..eaa4135 100644
--- a/solenv/inc/unxgcc.mk
+++ b/solenv/inc/unxgcc.mk
@@ -73,7 +73,7 @@ CC+:=$(CFLAGS_SYSBASE)
 CFLAGS+=-fmessage-length=0 -c
 
 # flags to enable build with symbols
-CFLAGSENABLESYMBOLS=-g
+CFLAGSENABLESYMBOLS=-ggdb3
 
 # flags for the C++ Compiler
 CFLAGSCC= -pipe $(ARCH_FLAGS)
@@ -110,7 +110,7 @@ CFLAGSSLOCUIMT=$(PICSWITCH)
 # Compiler flags for profiling
 CFLAGSPROF=
 # Compiler flags for debugging
-CFLAGSDEBUG=-g
+CFLAGSDEBUG=-ggdb3
 CFLAGSDBGUTIL=
 
 GCCNUMVERSION_CMD=-dumpversion $(PIPEERROR) $(AWK) -v num=true -f $(SOLARENV)/bin/getcompver.awk
-- 
1.7.7.3


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.