]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: make dwarf2_get_dwz_file a method of dwarf2_per_bfd
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 3 Mar 2025 21:35:36 +0000 (16:35 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 4 Mar 2025 15:41:54 +0000 (10:41 -0500)
commit66195fe109289637e6f1668464c660e782c519f9
tree3df6527a2c6af941589f0c9681f6d189cf90e038
parent121efb593c239befbca90ed492492b44a695184e
gdb/dwarf: make dwarf2_get_dwz_file a method of dwarf2_per_bfd

dwarf2_get_dwz_file looks more or less like a simple getter of
dwarf2_per_bfd::dwz_file, so make it into a method.

I typically avoid the `get_` prefix for getters, but that would conflict
with the field name here.

Change-Id: Idd0d5b1bd3813babf438b20aac514b19c77cfc18
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/dwz.c
gdb/dwarf2/dwz.h
gdb/dwarf2/index-cache.c
gdb/dwarf2/index-write.c
gdb/dwarf2/macro.c
gdb/dwarf2/read-debug-names.c
gdb/dwarf2/read-gdb-index.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h