Add dwarf2_per_objfile parameter to allocate_piece_closure
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:14:03 +0000 (11:14 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:15:57 +0000 (11:15 -0400)
commit3c3cd3d4d7c7e05aa48b87c4ab11bac12a2caf7c
treebde11c5e1086ed8ee33f665112940082a6d21c22
parent82ca3f5189e9f8199dc21baeabe2a31a342db163
Add dwarf2_per_objfile parameter to allocate_piece_closure

This allows removing a dwarf2_per_cu_data::dwarf2_per_objfile reference.

gdb/ChangeLog:

* dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
parameter.
(dwarf2_evaluate_loc_desc_full): Update.

Change-Id: Ic4a694a3fc763360a131ee4e3aaf5a5b4735c813
gdb/ChangeLog
gdb/dwarf2/loc.c