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


* insert arbitrary debugging code that is only present in 'special'
  builds: #ifdef DBG_UTIL and #if OSL_DEBUG_LEVEL > n

Unfortunately, I think those have been mixed up in the past occasionally. When I recently tried a 
build with --enable-dbgutil but not --enable-debug, I came across a handful of places where some 
variables or class member was defined inside #if OSL_DEBUG_LEVEL > n but then those variables or 
class members were used inside #ifdef DBG_UTIL code, or in some DBG_whatever macro which amounts to 
the same.

I'm fully for discarding the old DBG_* tools entirely.

I probably agree.

The reason why I wanted to build with --enable-dbgutil was that I was trying to track down what I 
suspected was heap corruption, on Windows, and using --enable-dbgutil makes the built binaries use 
the so-called debugging runtime that does (as far as I know) more heap correctness checking. But 
unfortunately that build didn't turn out usable anyway, it crashed on startup, and I didn't have 
time to dig into it more.

But anyway, I wonder, if we drop --enable-dbgutil, should then --enable-debug (or building 
individual modules with debug=true) cause the debugging runtime to be used? Will it cause horrible 
crashes if some DLLs use the debugging runtime and some not?

--tml



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.