Pass dwarf2_per_bfd instead of dwarf2_per_objfile to some index-related functions
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 27 May 2020 15:14:08 +0000 (11:14 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 27 May 2020 15:19:40 +0000 (11:19 -0400)
commit168c9250f292bf8d2db6dba374232e3655c10d94
tree6cc5d53868dec66df0783f06a82f9ca01e35136d
parente286671bf99ab870d67431068e863c1c57631b1f
Pass dwarf2_per_bfd instead of dwarf2_per_objfile to some index-related functions

All these functions actually only need to receive a dwarf2_per_bfd, pass
that instead of dwarf2_per_objfile.

gdb/ChangeLog:

* dwarf2/read.c (create_cu_from_index_list): Replace
dwarf2_per_objfile parameter with dwarf2_per_bfd.
(create_cus_from_index_list): Likewise.
(create_cus_from_index): Likewise.
(create_signatured_type_table_from_index): Likewise.
(create_cus_from_debug_names_list): Likewise.
(create_cus_from_debug_names): Likewise.
(dwarf2_read_gdb_index): Update.
(dwarf2_read_debug_names): Update.

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