]> 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, 27 May 2020 15:14:09 +0000 (11:14 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:19:40 +0000 (11:19 -0400)
commit8fc0b21da6d25e0a9fc565a94d2301c2365f2d3c
tree53305ff18d2d776b8b60ed3905a47ad6010e213c
parent168c9250f292bf8d2db6dba374232e3655c10d94
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.

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