Remove dwarf2_cu->per_cu->dwarf2_per_objfile references
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:13:53 +0000 (11:13 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:15:54 +0000 (11:15 -0400)
commit5e22e966a02123478a3c5e067f911a3d180060af
tree5241b764b7644df45afdb826d6c358cb4e0f9d0d
parent97a1449a95e34910e74ea24914f765314c2d8d1b
Remove dwarf2_cu->per_cu->dwarf2_per_objfile references

Change spots that access the dwarf2_per_objfile object through this
pattern:

  dwarf2_cu->per_cu->dwarf2_per_objfile

to

  dwarf2_cu->per_objfile

This allows removing many references to
dwarf2_per_cu_data::dwarf2_per_objfile.

Again, I hope the following ChangeLog entry will be fine.  I'd rather not
list all the affected functions, as it would be time-consuming and a bit
pointless.

gdb/ChangeLog:

* dwarf2/read.c: Replace
dwarf2_cu->per_cu->dwarf2_per_objfile references with
dwarf2_cu->per_objfile throughout.

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