diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-02-16 11:35:00 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-02-16 11:37:57 -0800 |
commit | 6d66bd25dc84e362f56ffe66667f6c9017ba73d0 (patch) | |
tree | f2aad11c6fa8f9bcb2082e78e1e9de732dff5a8e /libbacktrace | |
parent | fe581e63431bb1115d8a4945ba457f05e33dc6bb (diff) | |
download | gcc-6d66bd25dc84e362f56ffe66667f6c9017ba73d0.zip gcc-6d66bd25dc84e362f56ffe66667f6c9017ba73d0.tar.gz gcc-6d66bd25dc84e362f56ffe66667f6c9017ba73d0.tar.bz2 |
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.
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/dwarf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbacktrace/dwarf.c b/libbacktrace/dwarf.c index c0bae0e..2158bc1 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; |