diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-10 08:24:43 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-25 13:53:09 -0600 |
commit | 41a883c8edf98e86176d007bc8ad1c86c9675528 (patch) | |
tree | ffeb4d84f6cdfc38dcd405976e3425af84b7276f /gdb/ada-lang.h | |
parent | bf259e253f0d27323756fb434ba6e94d50846021 (diff) | |
download | gdb-41a883c8edf98e86176d007bc8ad1c86c9675528.zip gdb-41a883c8edf98e86176d007bc8ad1c86c9675528.tar.gz gdb-41a883c8edf98e86176d007bc8ad1c86c9675528.tar.bz2 |
Clear entire "location" in value constructor
My recent change to allocate values with "new" may have introduced a
small bug. In particular, the previous code allocated with XCNEW, but
the new code only clears a part of the "location" field in the
constructor. I didn't try very hard to actually trigger a bug here,
the problem remains theoretical.
This patch just arranges to initialize the entire location.
Regression tested by the buildbot.
2018-05-25 Tom Tromey <tom@tromey.com>
* value.c (value::location): Initialize.
Diffstat (limited to 'gdb/ada-lang.h')
0 files changed, 0 insertions, 0 deletions