aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-15 23:03:45 +0000
committerIan Lance Taylor <iant@google.com>2007-11-15 23:03:45 +0000
commit02d2ba740273e3f539501337eebf0c6007af0b4b (patch)
treed5f227a534ef7accd13c1aff4327c00935b7bbef /gold/parameters.h
parent557586a2002c600f50084e3ea9931393b44dbe46 (diff)
downloadgdb-02d2ba740273e3f539501337eebf0c6007af0b4b.zip
gdb-02d2ba740273e3f539501337eebf0c6007af0b4b.tar.gz
gdb-02d2ba740273e3f539501337eebf0c6007af0b4b.tar.bz2
From Craig Silverstein: Add --strip-debug-gdb.
Diffstat (limited to 'gold/parameters.h')
-rw-r--r--gold/parameters.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gold/parameters.h b/gold/parameters.h
index b760ece..3186b6d 100644
--- a/gold/parameters.h
+++ b/gold/parameters.h
@@ -112,6 +112,14 @@ class Parameters
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
@@ -221,7 +229,9 @@ class Parameters
// 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.