diff options
Diffstat (limited to 'binutils-2.25/gold/fileread.cc')
-rw-r--r-- | binutils-2.25/gold/fileread.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils-2.25/gold/fileread.cc b/binutils-2.25/gold/fileread.cc index 8c46a1fb..0bd83206 100644 --- a/binutils-2.25/gold/fileread.cc +++ b/binutils-2.25/gold/fileread.cc @@ -1,6 +1,6 @@ // fileread.cc -- read files for gold -// Copyright (C) 2006-2014 Free Software Foundation, Inc. +// Copyright (C) 2006-2015 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. @@ -293,6 +293,7 @@ void File_read::lock(const Task* task) { gold_assert(this->released_); + gold_debug(DEBUG_FILES, "Locking file \"%s\"", this->name_.c_str()); this->token_.add_writer(task); this->released_ = false; } @@ -302,6 +303,7 @@ File_read::lock(const Task* task) void File_read::unlock(const Task* task) { + gold_debug(DEBUG_FILES, "Unlocking file \"%s\"", this->name_.c_str()); this->release(); this->token_.remove_writer(task); } |