]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add dwarf2_per_bfd::start_reading
authorTom Tromey <tom@tromey.com>
Thu, 6 Feb 2025 21:07:59 +0000 (14:07 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 9 Feb 2025 23:14:01 +0000 (16:14 -0700)
commit433bc515df150f83020b72a45a9a7da47f755974
tree965e88eb85408fa17405a47940c5f78bcf32c879
parent402f31a34d8f878695e65a015eb5923dec47a8bf
Add dwarf2_per_bfd::start_reading

The cooked index "start_reading" method can only be called after the
dwarf2_per_bfd "index_table" member is set.  This patch refactors this
code a little to centralize this constraint, adding a new
dwarf2_per_bfd::start_reading method and another (virtual) method to
dwarf_scanner_base.

This removes some casts, but also is also useful to support another
series I'm working on where the .gdb_index is rewritten.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/cooked-index.h
gdb/dwarf2/mapped-index.h
gdb/dwarf2/read-debug-names.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h