I am trying a Windows rebuild now. In the meanwhile, what debugger are you
using? Can you debug any other modules, eg. vcl which uses gbuild, or sal
which uses dmake?

It's possible that Windows also needs gb_LinkTarget_LDFLAGS += -DEBUG to
enable debugging, as per the "ifeq ($(gb_DEBUGLEVEL),2)" part of
solenv/gbuild/platform/windows.mk. If so, please try the attached patch
which should do that.



On Sun, Jan 29, 2017 at 10:34 PM, Patricia Shanahan <p...@acm.org> wrote:

> On 1/25/2017 9:35 AM, Damjan Jovanovic wrote:
>
>> Hi
>>
>> For a while I've noticed how gbuild modules don't have debug symbols
>> unless
>> built with the maximum debug level ("./configure --enable-debug" globally
>> or "build debug=true" per module) which also produces oceans of log
>> messages we usually don't want.
>>
>> In r1780246, I've finally changed debugging in gbuild to match how dmake
>> works: --enable-symbols and --enable-crashdump now also add debug symbols
>> to gbuild modules like they do to dmake modules, and the
>> --enable-symbols=small option is also implemented for GCC and Clang (sorry
>> Windows developers, MSVC doesn't seem to have it). The only extra benefit
>> of --enable-debug on top of this now, is that it disables compiler
>> optimizations - should we disable them for --enable-symbols too?
>>
>> In r1780248 I've also made Java's .class files get full debugging info
>> whenever C++ does.
>>
>> This should vastly improve running AOO under a debugger, as we get nice
>> line numbers and variable names for absolutely everything :-).
>>
>
> I compiled with the attached configure parameters, and breakpoints are not
> working in main/sw/source/ui/app/docsh.cxx, "No symbols have been loaded
> for this document". What should I change?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
Index: main/solenv/gbuild/LinkTarget.mk
===================================================================
--- main/solenv/gbuild/LinkTarget.mk    (revision 1780248)
+++ main/solenv/gbuild/LinkTarget.mk    (working copy)
@@ -30,20 +30,7 @@
 # LDFLAGS
 
 # CFLAGS from environment override debug/optimization flags
-ifeq ($(gb_DEBUGLEVEL),2)
-gb_DEBUGGING := TRUE
-endif
 
-ifeq ($(ENABLE_SYMBOLS),SMALL)
-gb_DEBUGGING := TRUE
-else ifeq ($(ENABLE_SYMBOLS),TRUE)
-gb_DEBUGGING := TRUE
-endif
-
-ifeq ($(ENABLE_CRASHDUMP),TRUE)
-gb_DEBUGGING := TRUE
-endif
-
 ifeq ($(gb_DEBUGGING),TRUE)
 CFLAGS ?= $(gb_COMPILEROPTFLAGS) $(gb_DEBUG_CFLAGS)
 CXXFLAGS ?= $(gb_COMPILEROPTFLAGS) $(gb_DEBUG_CFLAGS)
Index: main/solenv/gbuild/gbuild.mk
===================================================================
--- main/solenv/gbuild/gbuild.mk        (revision 1780221)
+++ main/solenv/gbuild/gbuild.mk        (working copy)
@@ -92,6 +92,20 @@
 endif
 endif
 
+ifeq ($(gb_DEBUGLEVEL),2)
+gb_DEBUGGING := TRUE
+endif
+
+ifeq ($(ENABLE_SYMBOLS),SMALL)
+gb_DEBUGGING := TRUE
+else ifeq ($(ENABLE_SYMBOLS),TRUE)
+gb_DEBUGGING := TRUE
+endif
+
+ifeq ($(ENABLE_CRASHDUMP),TRUE)
+gb_DEBUGGING := TRUE
+endif
+
 ifneq ($(strip $(ENABLE_PCH)),)
 gb_ENABLE_PCH := $(true)
 else
Index: main/solenv/gbuild/platform/windows.mk
===================================================================
--- main/solenv/gbuild/platform/windows.mk      (revision 1780221)
+++ main/solenv/gbuild/platform/windows.mk      (working copy)
@@ -195,6 +195,10 @@
 
 gb_DEBUG_CFLAGS := -Zi
 
+ifeq ($(gb_DEBUGGING),TRUE)
+gb_LinkTarget_LDFLAGS += -DEBUG
+endif
+
 # this does not use CFLAGS so it is not overridable
 ifneq ($(ENABLE_CRASHDUMP),)
 gb_LinkTarget_LDFLAGS += -DEBUG
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to