Refactor: Move some generic code out of .gdb_index code
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 8 Dec 2017 22:44:11 +0000 (22:44 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 8 Dec 2017 23:37:30 +0000 (23:37 +0000)
commit4b514bc80885fa91e57b9d80f74ea267df343c46
tree93658de5b70b7e847d0cadcd9a2aaddbc60e2bfe
parentabccd1e7b7a37385159610ca4e0bc2632a547e9a
Refactor: Move some generic code out of .gdb_index code

Preparation for the next patch.

gdb/ChangeLog
2017-12-08  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwarf2read.c (create_cu_from_index_list): New from ...
(create_cus_from_index_list): ... this function, use it.
(dw_expand_symtabs_matching_file_matcher)
(dw2_expand_symtabs_matching_one): New from ...
(dw2_expand_symtabs_matching): ... this function, use them.
gdb/ChangeLog
gdb/dwarf2read.c