]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Pass dwarf2_cu to process_full_{comp,type}_unit
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Apr 2020 12:30:06 +0000 (08:30 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 12 May 2020 19:24:51 +0000 (15:24 -0400)
commita3ddd1a46c2f7ba70387d90ea2f6c16b5a9764b1
treea1fd5f6958e4e2e679163e6dcdf74a107f2e66be
parentd4b0ea16296c8ba432e5110d696acdd6979216e4
Pass dwarf2_cu to process_full_{comp,type}_unit

These two functions work on a dwarf2_cu.  It is currently obtained from
the per_cu->cu link, which we want to remove.  Make them accept the
dwarf2_cu directly as a parameter.  This moves the per_cu->cu references
one level up, but that one will be removed too in a subsequent patch.

gdb/ChangeLog:

* dwarf2/read.c (process_full_comp_unit,
process_full_type_unit): Remove per_cu, per_objfile paramters.
Add dwarf2_cu parameter.
(process_queue): Update.
gdb/dwarf2/read.c