aboutsummaryrefslogtreecommitdiff
path: root/gold/descriptors.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-07-14 10:38:59 +0000
committerIan Lance Taylor <ian@airs.com>2010-07-14 10:38:59 +0000
commit783659f926cc0c9a76d12590b01c75fd0caa58bb (patch)
tree45a37feb98cb5871f7a9eb3f7f41b84f5a56839e /gold/descriptors.cc
parenta7b16ceb928e405dc096f2af5ca7c7321e5e2e7a (diff)
downloadgdb-783659f926cc0c9a76d12590b01c75fd0caa58bb.zip
gdb-783659f926cc0c9a76d12590b01c75fd0caa58bb.tar.gz
gdb-783659f926cc0c9a76d12590b01c75fd0caa58bb.tar.bz2
* descriptors.cc (Descriptors::open): Report correct name in error
message.
Diffstat (limited to 'gold/descriptors.cc')
-rw-r--r--gold/descriptors.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gold/descriptors.cc b/gold/descriptors.cc
index f4a02d0..db8ad67 100644
--- a/gold/descriptors.cc
+++ b/gold/descriptors.cc
@@ -113,8 +113,7 @@ Descriptors::open(int descriptor, const char* name, int flags, int mode)
{
Hold_lock hl(*this->lock_);
- gold_error(_("file %s was removed during the link"),
- this->open_descriptors_[descriptor].name);
+ gold_error(_("file %s was removed during the link"), name);
}
errno = ENOENT;