mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
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.
This commit is contained in:
@ -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>
|
2020-05-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header.
|
* bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header.
|
||||||
|
@ -273,7 +273,8 @@ try_load_plugin (const char *pname,
|
|||||||
plugin_handle = dlopen (pname, RTLD_NOW);
|
plugin_handle = dlopen (pname, RTLD_NOW);
|
||||||
if (!plugin_handle)
|
if (!plugin_handle)
|
||||||
{
|
{
|
||||||
_bfd_error_handler ("%s\n", dlerror ());
|
_bfd_error_handler ("Failed to load plugin '%s', reason: %s\n",
|
||||||
|
pname, dlerror ());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user