Hi On FreeBSD, when I try debug dmake modules in AOO with gdb, and use the "break <file>:<line>" command, I have to specify the filename only, without a path, otherwise it can't find it. On Linux it always finds the file, whether an absolute path, relative path, or filename only is used. Eclipse CDT's integrated debugger fails to set breakpoints because of this, making it useless.
On the other hand, gbuild modules with the patch at the end of my mail (and --enable-symbols to ./configure) work just fine using absolute path and relative path. However patching dmake to use similar debug options to gbuild didn't help: Index: main/solenv/inc/unxfbsd.mk =================================================================== --- main/solenv/inc/unxfbsd.mk (revision 1730773) +++ main/solenv/inc/unxfbsd.mk (working copy) @@ -86,7 +86,7 @@ .IF "$(ENABLE_SYMBOLS)"=="SMALL" CFLAGSENABLESYMBOLS=-g1 .ELSE -CFLAGSENABLESYMBOLS=-g # was temporarily commented out, reenabled before Beta +CFLAGSENABLESYMBOLS=-ggdb3 # was temporarily commented out, reenabled before Beta .ENDIF Is there known issues debugging clang's binaries with gdb? Any ideas? Thank you Damjan Index: main/solenv/gbuild/platform/freebsd.mk =================================================================== --- main/solenv/gbuild/platform/freebsd.mk (revision 1730773) +++ main/solenv/gbuild/platform/freebsd.mk (working copy) @@ -238,6 +238,16 @@ endif endif +ifeq ($(ENABLE_SYMBOLS),TRUE) +ifeq ($(COM),CLANG) +gb_LinkTarget_CXXFLAGS += -ggdb3 -fno-inline +gb_LinkTarget_CFLAGS += -ggdb3 -fno-inline +else +gb_LinkTarget_CXXFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline +gb_LinkTarget_CFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline +endif +endif + gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC))) gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org