aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-28 21:03:49 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-28 21:03:49 +0000
commit4802450ac95e6cb976fa8b35f194f91a8a4fd4ea (patch)
tree42f14d18e40d31bffb38b431658d1ba663874b32 /gold/plugin.cc
parent98751a4113ee63e980f4a6fa199151f7da617f1f (diff)
downloadgdb-4802450ac95e6cb976fa8b35f194f91a8a4fd4ea.zip
gdb-4802450ac95e6cb976fa8b35f194f91a8a4fd4ea.tar.gz
gdb-4802450ac95e6cb976fa8b35f194f91a8a4fd4ea.tar.bz2
2010-06-28 Rafael Espindola <espindola@google.com>
* plugin.cc (Plugin::load): Use dlerror.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc
index c9e55ef..ba4bd4c 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -106,8 +106,8 @@ Plugin::load()
this->handle_ = dlopen(this->filename_.c_str(), RTLD_NOW);
if (this->handle_ == NULL)
{
- gold_error(_("%s: could not load plugin library"),
- this->filename_.c_str());
+ gold_error(_("%s: could not load plugin library: %s"),
+ this->filename_.c_str(), dlerror());
return;
}