]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: pass unit length to dwarf2_per_cu_data constructor
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 26 Feb 2025 16:52:31 +0000 (11:52 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 27 Feb 2025 15:15:23 +0000 (10:15 -0500)
commit39ee8c928551783ac0c5058a04acd3dd4e008854
tree58f9c623213d16a8415567fb795ca6c97d10b3fa
parent1142f1b33456158ff7a8f45f183381d605d3e80d
gdb/dwarf: pass unit length to dwarf2_per_cu_data constructor

Most of the time, the length of a unit is known when constructing a
dwarf2_per_cu_data or signatured_type.  Add a construtor parameter for
it.  In the few cases where it isn't, pass 0, which leaves it unset.

Change-Id: I0c8b9683164d3e3f3823ed995f71689a4d17fd96
Reviewed-By: Tom de Vries <tdevries@suse.de>
gdb/dwarf2/read-gdb-index.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h