aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-12-06 05:38:11 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-12-06 05:38:11 +0000
commit3b8525f821f1b9180dd5bd3073414e7d13883a69 (patch)
treea132112b64bdd25e8e931a382f867aeb1e8dcc8a /ld/plugin.c
parent7990daecfc90f458631df31ffc4d56b42957e32f (diff)
downloadgdb-3b8525f821f1b9180dd5bd3073414e7d13883a69.zip
gdb-3b8525f821f1b9180dd5bd3073414e7d13883a69.tar.gz
gdb-3b8525f821f1b9180dd5bd3073414e7d13883a69.tar.bz2
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.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index 34d76bd..3d7809c 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -590,6 +590,9 @@ message (int level, const char *format, ...)
char *newfmt = ACONCAT ((level == LDPL_FATAL
? "%P%F: " : "%P%X: ",
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);
}
break;