gdb/dwarf: remove line_header::total_length field
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 12 Apr 2022 19:31:24 +0000 (15:31 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Apr 2022 19:05:51 +0000 (15:05 -0400)
commitebf58f8eb185e49fa4ed05b5e2ff5d703229b9b7
treee0296324f703944b1a01e6ee8055aa550f171070
parent0b84fbd54ee44cc88fd95cf1993f0e704c4d78e2
gdb/dwarf: remove line_header::total_length field

This doesn' have to be a field, it can simply be a local variable in
dwarf_decode_line_header.  Name the local variable "unit_length", since
that's what the field in called in DWARF 4 and 5.  It's always easier to
follow the code with the standard on the side when we use the same
terminology.

Change-Id: I3ad1022afd9410b193ea11b9b5437686c1e4e633
gdb/dwarf2/line-header.c
gdb/dwarf2/line-header.h