diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-11-17 19:13:49 -0600 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-11-18 11:50:48 -0600 |
commit | 6edc43ec327c2b74e10b80774fa6ecde3dc58537 (patch) | |
tree | 04abfa22825a8a2df8aed52d2d302fd5d6a22105 /texinfo | |
parent | ed7e9d0bdaa0cbeb157e427c262e692a993e4432 (diff) | |
download | gdb-6edc43ec327c2b74e10b80774fa6ecde3dc58537.zip gdb-6edc43ec327c2b74e10b80774fa6ecde3dc58537.tar.gz gdb-6edc43ec327c2b74e10b80774fa6ecde3dc58537.tar.bz2 |
Don't use class-initialization for the owner union
As reported by PhilippeW, valgrind reports that symtab is uninitialized
when compiling with GCC 4.8.5, which is the default compiler on CentOS 7.
This is apparently a compiler bug fixed in later versions, but to keep
CentOS 7 working, this patch initializes the union explicitly instead of
using a class initializer.
gdb/ChangeLog:
2019-11-18 Christian Biesinger <cbiesinger@google.com>
* symtab.h (struct symbol) <owner>: Initialize explicitly in the
constructor instead of using a class initializer.
Change-Id: I94f48afeae5d29cf81a280295e2d02e2d7e1c1f1
Diffstat (limited to 'texinfo')
0 files changed, 0 insertions, 0 deletions