]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Extend the error message displayed when a plugin fails to load.
authorNick Clifton <nickc@redhat.com>
Tue, 26 May 2020 13:49:42 +0000 (14:49 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 26 May 2020 13:50:02 +0000 (14:50 +0100)
* plugin.c (try_load_plugin): Extend error message when a plugin
fails to open.

bfd/ChangeLog
bfd/plugin.c

index 2da474e02c9790cf9d33131f01a0f1624bf597df..f165b00515e3ff859eb0660f2740ff8904302453 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-26  Nick Clifton  <nickc@redhat.com>
+
+       * plugin.c (try_load_plugin): Extend error message when a plugin
+       fails to open.
+
 2020-05-23  Alan Modra  <amodra@gmail.com>
 
        * bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header.
index 9439366f4bf42249b31d718df86955033b9b3b69..97f1c9c7731bbe575300aeeb6ce26b726f2bb5a5 100644 (file)
@@ -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;
     }