diff options
author | Cary Coutant <ccoutant@google.com> | 2008-12-05 21:34:54 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2008-12-05 21:34:54 +0000 |
commit | 4674ecfcf4045b3a3d81a4a979debd59ea1b6b11 (patch) | |
tree | 304093024cd1aed1d02654b688a607510c40efc8 /gold/options.h | |
parent | fd06b4aa51e5e4b322f4784e3ea248e25aab733a (diff) | |
download | gdb-4674ecfcf4045b3a3d81a4a979debd59ea1b6b11.zip gdb-4674ecfcf4045b3a3d81a4a979debd59ea1b6b11.tar.gz gdb-4674ecfcf4045b3a3d81a4a979debd59ea1b6b11.tar.bz2 |
2008-12-05 Rafael Avila de Espindola <espindola@google.com>
* options.cc (General_options::parse_plugin_opt): New.
(General_options::add_plugin): The argument now is just the filename.
(General_options::add_plugin_option): New.
* options.h (plugin_opt): New.
(add_plugin): Change argument name.
(add_plugin_option): New.
* plugin.cc (Plugin::load): Don't parse the plugin option.
* plugin.h (Plugin::Plugin): Rename argument. Init filename_.
(Plugin::add_option): New.
(Plugin::args_): Change type.
(Plugin::filename_): New.
(Plugin_manager::add_plugin_option): New.
* testsuite/Makefile.am (plugin_test_1): Use new syntax.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gold/options.h b/gold/options.h index f92184f..8d936d0 100644 --- a/gold/options.h +++ b/gold/options.h @@ -704,7 +704,9 @@ class General_options #ifdef ENABLE_PLUGINS DEFINE_special(plugin, options::TWO_DASHES, '\0', - N_("Load a plugin library"), N_("PLUGIN[,ARG,...]")); + N_("Load a plugin library"), N_("PLUGIN")); + DEFINE_special(plugin_opt, options::TWO_DASHES, '\0', + N_("Pass an option to the plugin"), N_("OPTION")); #endif DEFINE_bool(preread_archive_symbols, options::TWO_DASHES, '\0', false, @@ -991,7 +993,11 @@ class General_options // Add a plugin and its arguments to the list of plugins. void - add_plugin(const char* arg); + add_plugin(const char *filename); + + // Add a plugin option. + void + add_plugin_option(const char* opt); // Whether to mark the stack as executable. Execstack execstack_status_; |