aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-11-20 17:32:07 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-11-20 17:32:07 +0000
commitf9982339c9d56624fd9da4ded33a08272ef9b1cc (patch)
tree6b47800d11718a131608edd6667e17912e6b29ee /ld/lexsup.c
parenteb22018c4c91268d4a6a11dc636493082ca33049 (diff)
downloadgdb-f9982339c9d56624fd9da4ded33a08272ef9b1cc.zip
gdb-f9982339c9d56624fd9da4ded33a08272ef9b1cc.tar.gz
gdb-f9982339c9d56624fd9da4ded33a08272ef9b1cc.tar.bz2
Properly report loading plugin error.
2010-11-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/12247 * lexsup.c (parse_args): Properly report loading plugin error.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 39ca326..b6274f8 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1056,7 +1056,8 @@ parse_args (unsigned argc, char **argv)
#ifdef ENABLE_PLUGINS
case OPTION_PLUGIN:
if (plugin_opt_plugin (optarg))
- einfo(_("%P%F: bad -plugin option\n"));
+ einfo (_("%P%F: %s: error loading plugin\n"),
+ plugin_error_plugin ());
break;
case OPTION_PLUGIN_OPT:
if (plugin_opt_plugin_arg (optarg))