On 07/11/12 22:02, David Ostrovsky wrote:
On 07.11.2012 17:16, Tor Lillqvist wrote:
If no one has any opinion on it, I'm going to name it
--enable-symbols-only.
I don't like that, as it strongly suggests that this option would
cause some kind of lighter, symbol/address mapping only kind of data
to be emitted, as opposed to full debug information. Which is doesn't,
at least not for all platforms. Or am I missing something?
no, you are right, it's the same symbol information as with full debug
information (on all platforms). The difference between the two is only
optimization:
O | S | D | T
--------------------------------------
production-code| x | - | - | -
--------------------------------------
enable-symbols | x | x | - | -
--------------------------------------
enable-debug | - | x | - | -
--------------------------------------
enable-dbgutil | - | x | x | x
where
O: optimization
S: symbols
D: debug STL
T: trace facility
actually --enable-debug also sets OSL_DEBUG_LEVEL (enables tracing).
also --enable-dbgutil defines DBG_UTIL which causes some extra
debugging/checking code to be enabled.
(and it used to be the case that --enable-dbgutil by itself left
optimization enabled but apparently nowadays it disables that.)
So to reflect what these options mean exactly one should name it as follows:
enable-symbols: --enable-symbols-and-preserve-optimization
enable-debug: --enable-symbols-and-disable-optimization
enable-dbgutil:
--enable-symbols-and-disable-optimization-and-enable-debugstl-and-enable-trace-facility
Given that we don't want to rename two last options, we are trying to
find a new (less confusing and not so long) name
for the first one:
--enable-symbols-and-preserve-optimization
Ideas?
hmm.. actually i don't like --enable-symbols much because "symbols"
could refer to linker symbols when what is really meant is "symbolic
debugging information". but then again --enable-symbols has been used
for many years in this project so people are already used to it :)
how about --enable-release-debuginfo ? --enable-product-debuginfo ?
Context
- Change in core[master]: restore --enable-symbols option again -- was FYI: Cleanup of debug options (continued)
Re: Change in core[master]: restore --enable-symbols option again -- was FYI: Cleanup of debug options · Lubos Lunak
[PUSHED] restore --enable-symbols option · Michael Meeks (via Code Review)
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.