gdb: make dwarf2_find_containing_comp_unit take a dwarf2_per_bfd
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 8 Nov 2021 21:40:59 +0000 (16:40 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 8 Nov 2021 21:40:59 +0000 (16:40 -0500)
commitd0490f89ad3670e1cdbe06db25f391eb5f9f0d6d
tree68b9e1014e6bfdc87408a79d836e9fa3146134ca
parent313f3b21cbcd3475c2fc6030abb26e6c8346d03b
gdb: make dwarf2_find_containing_comp_unit take a dwarf2_per_bfd

While reading another patch, I saw that this function didn't need to
take a dwarf2_per_objfile, but could take a dwarf2_per_bfd instead.
It doesn't change the behavior, but doing this shows that this function
is objfile-independent (can work with only the shared per-bfd data).

Change-Id: I58f9c9cef6688902e95226480285da2d0005d77f
gdb/dwarf2/read.c