aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/line-header.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-04-12 15:31:24 -0400
committerSimon Marchi <simon.marchi@efficios.com>2022-04-21 15:05:51 -0400
commitebf58f8eb185e49fa4ed05b5e2ff5d703229b9b7 (patch)
treee0296324f703944b1a01e6ee8055aa550f171070 /gdb/dwarf2/line-header.h
parent0b84fbd54ee44cc88fd95cf1993f0e704c4d78e2 (diff)
downloadgdb-ebf58f8eb185e49fa4ed05b5e2ff5d703229b9b7.zip
gdb-ebf58f8eb185e49fa4ed05b5e2ff5d703229b9b7.tar.gz
gdb-ebf58f8eb185e49fa4ed05b5e2ff5d703229b9b7.tar.bz2
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
Diffstat (limited to 'gdb/dwarf2/line-header.h')
-rw-r--r--gdb/dwarf2/line-header.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/dwarf2/line-header.h b/gdb/dwarf2/line-header.h
index 4adfe91..25b9e7c 100644
--- a/gdb/dwarf2/line-header.h
+++ b/gdb/dwarf2/line-header.h
@@ -136,7 +136,6 @@ struct line_header
/* OFFSET is for struct dwz_file associated with dwarf2_per_objfile. */
unsigned offset_in_dwz : 1; /* Can't initialize bitfields in-class. */
- unsigned int total_length {};
unsigned short version {};
unsigned int header_length {};
unsigned char minimum_instruction_length {};