diff options
author | Nick Clifton <nickc@redhat.com> | 2020-05-26 14:49:42 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-05-26 14:50:02 +0100 |
commit | 9e7cb4c359e6a86550bca296db617fb4c8068c1a (patch) | |
tree | 3b9c8aebfd007538c71c3e1df4b8d514ffc30eee /bfd/plugin.c | |
parent | a05e3e203954fac0aacfcb647b1f8b52760e6df0 (diff) | |
download | gdb-9e7cb4c359e6a86550bca296db617fb4c8068c1a.zip gdb-9e7cb4c359e6a86550bca296db617fb4c8068c1a.tar.gz gdb-9e7cb4c359e6a86550bca296db617fb4c8068c1a.tar.bz2 |
Extend the error message displayed when a plugin fails to load.
* plugin.c (try_load_plugin): Extend error message when a plugin
fails to open.
Diffstat (limited to 'bfd/plugin.c')
-rw-r--r-- | bfd/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/plugin.c b/bfd/plugin.c index 9439366..97f1c9c 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -273,7 +273,8 @@ try_load_plugin (const char *pname, plugin_handle = dlopen (pname, RTLD_NOW); if (!plugin_handle) { - _bfd_error_handler ("%s\n", dlerror ()); + _bfd_error_handler ("Failed to load plugin '%s', reason: %s\n", + pname, dlerror ()); return 0; } |