mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Call plugin_call_cleanup on plugin fatal error.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> PR ld/12289 * plugin.c (message): Call plugin_call_cleanup on fatal error.
This commit is contained in:
parent
7990daecfc
commit
3b8525f821
@ -1,3 +1,9 @@
|
|||||||
|
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/12289
|
||||||
|
* plugin.c (message): Call plugin_call_cleanup on fatal
|
||||||
|
error.
|
||||||
|
|
||||||
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
|
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* plugin.c (message): Add a space after `:' in error message.
|
* plugin.c (message): Add a space after `:' in error message.
|
||||||
|
@ -590,6 +590,9 @@ message (int level, const char *format, ...)
|
|||||||
char *newfmt = ACONCAT ((level == LDPL_FATAL
|
char *newfmt = ACONCAT ((level == LDPL_FATAL
|
||||||
? "%P%F: " : "%P%X: ",
|
? "%P%F: " : "%P%X: ",
|
||||||
format, "\n", NULL));
|
format, "\n", NULL));
|
||||||
|
if (plugin_call_cleanup ())
|
||||||
|
info_msg (_("%P: %s: error in plugin cleanup (ignored)\n"),
|
||||||
|
plugin_error_plugin ());
|
||||||
vfinfo (stderr, newfmt, args, TRUE);
|
vfinfo (stderr, newfmt, args, TRUE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user