aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-04 22:44:35 +0000
committerIan Lance Taylor <iant@google.com>2008-02-04 22:44:35 +0000
commit15893b88b0e64f14a08e952a07d3e517c7926c8e (patch)
tree0bafc37710491ff424e2da7e16e1e11b61668dff
parent32b1cf221d31145275866912242137b38654d099 (diff)
downloadgdb-15893b88b0e64f14a08e952a07d3e517c7926c8e.zip
gdb-15893b88b0e64f14a08e952a07d3e517c7926c8e.tar.gz
gdb-15893b88b0e64f14a08e952a07d3e517c7926c8e.tar.bz2
Treat an empty directory argument as the current directory.
-rw-r--r--gold/options.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index 47623dc..aa51126 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -73,7 +73,10 @@ class Search_directory
// This is the usual constructor.
Search_directory(const char* name, bool put_in_sysroot)
: name_(name), put_in_sysroot_(put_in_sysroot), is_in_sysroot_(false)
- { gold_assert(!this->name_.empty()); }
+ {
+ if (this->name_.empty())
+ this->name_ = ".";
+ }
// This is called if we have a sysroot. The sysroot is prefixed to
// any entries for which put_in_sysroot_ is true. is_in_sysroot_ is