diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-02-25 11:57:12 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-05-12 15:24:50 -0400 |
commit | bf1c1db5b2bc4410f670005c6c0b537ef3a4fedd (patch) | |
tree | 4517ff3bcce861cccefcd64002e7ab7b0bad6e4d | |
parent | 1d2852ed0a155ecefd754eea5704f81bb81db2ad (diff) | |
download | gdb-bf1c1db5b2bc4410f670005c6c0b537ef3a4fedd.zip gdb-bf1c1db5b2bc4410f670005c6c0b537ef3a4fedd.tar.gz gdb-bf1c1db5b2bc4410f670005c6c0b537ef3a4fedd.tar.bz2 |
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.
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 36c6434..504a260 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -6850,7 +6850,7 @@ lookup_dwo_unit (struct dwarf2_per_cu_data *this_cu, if (!signature.has_value ()) error (_("Dwarf Error: missing dwo_id for dwo_name %s" " [in module %s]"), - dwo_name, objfile_name (this_cu->dwarf2_per_objfile->objfile)); + dwo_name, bfd_get_filename (this_cu->per_bfd->obfd)); dwo_unit = lookup_dwo_comp_unit (this_cu, dwo_name, comp_dir, *signature); } |