]> gcc.gnu.org Git - gcc.git/commitdiff
libbacktrace: initialize DWARF 5 fields of unit
authorIan Lance Taylor <iant@golang.org>
Wed, 16 Feb 2022 19:35:00 +0000 (11:35 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 16 Feb 2022 19:37:57 +0000 (11:37 -0800)
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.

libbacktrace/dwarf.c

index c0bae0e501e77184a644bf7e858f010fba55b399..2158bc1406556ab3672fdc3fe839f42f29b9893d 100644 (file)
@@ -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;
This page took 0.062118 seconds and 5 git commands to generate.