gdb: add intern methods to objfile_per_bfd_storage
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 Apr 2021 15:23:52 +0000 (11:23 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 Apr 2021 15:35:29 +0000 (11:35 -0400)
commit4a4f97c129b26445ff14d0e5323feeb80610a539
treed477370ea39e6b4c7407ebc1b6eb43f6c38be9ac
parent0672875f3c7c03580ed88dfa48c2e3a3b16d0697
gdb: add intern methods to objfile_per_bfd_storage

This allows keeping the objfile_per_bfd_storage implementation details
into objfile_per_bfd_storage, instead of into objfile.  And this makes
the intern methods usable for code that only has an
objfile_per_bfd_storage to work with.

gdb/ChangeLog:

* objfiles.h (struct objfile_per_bfd_storage) <intern>: New
methods.
(struct objfile) <intern>: Use
objfile::objfile_per_bfd_storage::intern.

Change-Id: Ifd54026c5efaeffafac9b84ff84c199acc7ce78a
gdb/ChangeLog
gdb/objfiles.h