diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aacc0c9..f27043d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-12-04 Tom Tromey <tromey@adacore.com> + + * dwarf2read.c (process_structure_scope): Initialize + "discr_offset". + 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com> * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 327837c..f99061d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -16060,7 +16060,7 @@ process_structure_scope (struct die_info *die, struct dwarf2_cu *cu) read the discriminant member, so we can record it later in the discriminant_info. */ bool is_variant_part = TYPE_FLAG_DISCRIMINATED_UNION (type); - sect_offset discr_offset; + sect_offset discr_offset {}; bool has_template_parameters = false; if (is_variant_part) |