]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Cache .gnu_debugdata BFD
authorTom Tromey <tom@tromey.com>
Fri, 14 Feb 2020 21:16:23 +0000 (14:16 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 14 Feb 2020 21:16:24 +0000 (14:16 -0700)
commita4a38eb437382fbf2b2c6788fe35dd3340f9664a
treeac18d982d4265f3cef76ab880280a91a1c45cec1
parentf251f50533110132ce83678d644d53b1d1110b05
Cache .gnu_debugdata BFD

While looking at the output of "maint info bfd" with multiple
inferiors, I noticed that there were duplicate entries for
.gnu_debugdata.

There is no reason to re-create this BFD each time it is needed.  This
patch arranges to share the data.

gdb/ChangeLog
2020-02-14  Tom Tromey  <tom@tromey.com>

* minidebug.c (gnu_debug_key): New global.
(find_separate_debug_file_in_section): Use it.

Change-Id: If139f89f0f07db33f399afdbcfbf5aaeffe4de46
gdb/ChangeLog
gdb/minidebug.c