return this->strip_ == STRIP_ALL || this->strip_ == STRIP_DEBUG;
}
+ // Whether to strip debugging information that's not used by gdb.
+ bool
+ strip_debug_gdb() const
+ {
+ gold_assert(this->strip_ != STRIP_INVALID);
+ return this->strip_debug() || this->strip_ == STRIP_DEBUG_UNUSED_BY_GDB;
+ }
+
// Whether to permit unresolved references from shared libraries.
bool
allow_shlib_undefined() const
return this->symbolic_;
}
+ // Whether we should demangle C++ symbols in our log messages.
+ bool
+ demangle() const
+ { return this->demangle_; }
+
// Whether we should try to detect violations of the One Definition Rule.
bool
detect_odr_violations() const
// Strip all symbols.
STRIP_ALL,
// Strip debugging information.
- STRIP_DEBUG
+ STRIP_DEBUG,
+ // Strip debugging information that's not used by gdb (at least <= 6.7)
+ STRIP_DEBUG_UNUSED_BY_GDB
};
// A pointer to the error handling object.
bool allow_shlib_undefined_;
// Whether we are doing a symbolic link.
bool symbolic_;
+ // Whether we should demangle C++ symbols in our log messages.
+ bool demangle_;
// Whether we try to detect One Definition Rule violations.
bool detect_odr_violations_;
// The optimization level.