From: Ian Lance Taylor Date: Wed, 16 Feb 2022 19:35:00 +0000 (-0800) Subject: libbacktrace: initialize DWARF 5 fields of unit X-Git-Tag: basepoints/gcc-13~1047 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d66bd25dc84e362f56ffe66667f6c9017ba73d0;p=thirdparty%2Fgcc.git libbacktrace: initialize DWARF 5 fields of unit When I added the fields in 2019-12-13 I forgot to initialize them. * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit. --- diff --git a/libbacktrace/dwarf.c b/libbacktrace/dwarf.c index c0bae0e501e7..2158bc140655 100644 --- a/libbacktrace/dwarf.c +++ b/libbacktrace/dwarf.c @@ -2221,6 +2221,9 @@ build_address_map (struct backtrace_state *state, uintptr_t base_address, u->comp_dir = NULL; u->abs_filename = NULL; u->lineoff = 0; + u->str_offsets_base = 0; + u->addr_base = 0; + u->rnglists_base = 0; /* The actual line number mappings will be read as needed. */ u->lines = NULL;