]> 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>
Wed, 27 May 2020 15:13:55 +0000 (11:13 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:15:55 +0000 (11:15 -0400)
commit313bad1bc60b24722cd44c196acf3482b5b63efd
tree177845b51a8e65f14b203f3e429ed82bd93dc47f
parentc3699833af0343d13d7d39b3c589d3ac5b930137
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.

Change-Id: I1e1c1870820aec23701edc9c3994612da5781c23
gdb/ChangeLog
gdb/dwarf2/read.c