From: Nick Clifton Date: Tue, 26 May 2020 13:49:42 +0000 (+0100) Subject: Extend the error message displayed when a plugin fails to load. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9e7cb4c359e6a86550bca296db617fb4c8068c1a;p=deliverable%2Fbinutils-gdb.git 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2da474e02c..f165b00515 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-05-26 Nick Clifton + + * plugin.c (try_load_plugin): Extend error message when a plugin + fails to open. + 2020-05-23 Alan Modra * bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header. diff --git a/bfd/plugin.c b/bfd/plugin.c index 9439366f4b..97f1c9c773 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; }