]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use bfd_get_filename instead of objfile_name in lookup_dwo_unit
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Feb 2020 16:57:12 +0000 (11:57 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 12 May 2020 19:24:50 +0000 (15:24 -0400)
commitbf1c1db5b2bc4410f670005c6c0b537ef3a4fedd
tree4517ff3bcce861cccefcd64002e7ab7b0bad6e4d
parent1d2852ed0a155ecefd754eea5704f81bb81db2ad
Use bfd_get_filename instead of objfile_name in lookup_dwo_unit

There should be no functional difference, as objfile_name defers to
bfd_get_filename if objfile::obfd is non-NULL, which should be the case
here.  This allows to remove a reference to
dwarf2_per_cu_data::dwarf2_per_objfile.

gdb/ChangeLog:

* dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
of objfile_name.
gdb/dwarf2/read.c