aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-02-13 03:17:51 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-02-13 03:18:13 -0800
commit99845b3b77ed1248b6fb94707f88868bde358ccc (patch)
treed3b956458d2ff9bef4a8d1ff27ed2131b872899c /bfd/ChangeLog
parentf98a845896fc0811b8ffd1934829e40ad0e744e3 (diff)
downloadgdb-99845b3b77ed1248b6fb94707f88868bde358ccc.zip
gdb-99845b3b77ed1248b6fb94707f88868bde358ccc.tar.gz
gdb-99845b3b77ed1248b6fb94707f88868bde358ccc.tar.bz2
plugin: Search bfd-plugins directories only once
try_load_plugin is updated to take either plugin name or plugin entry. load_plugin is updated to search bfd-plugins directories first to build a list of plugins and call try_load_plugin with each plugin on the list. When --plugin is used, the plugin list only has one entry. * plugin.c (try_load_plugin): Make plugin_list_iter an argument and use it if it isn't NULL. Remove has_plugin_p argument. Add a build_list_p argument. Don't search plugin_list. Short circuit when building the plugin list. (has_plugin): Renamed to has_plugin_list. (bfd_plugin_set_plugin): Don't set has_plugin. (bfd_plugin_specified_p): Check plugin_list instead. (build_plugin_list): New function. (load_plugin): Call build_plugin_list and use plugin_list.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 98a027e..e2f236f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * plugin.c (try_load_plugin): Make plugin_list_iter an argument
+ and use it if it isn't NULL. Remove has_plugin_p argument. Add
+ a build_list_p argument. Don't search plugin_list. Short circuit
+ when building the plugin list.
+ (has_plugin): Renamed to has_plugin_list.
+ (bfd_plugin_set_plugin): Don't set has_plugin.
+ (bfd_plugin_specified_p): Check plugin_list instead.
+ (build_plugin_list): New function.
+ (load_plugin): Call build_plugin_list and use plugin_list.
+
2020-02-11 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/25355