Clear entire "location" in value constructor
authorTom Tromey <tom@tromey.com>
Tue, 10 Apr 2018 14:24:43 +0000 (08:24 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 25 May 2018 19:53:09 +0000 (13:53 -0600)
commit41a883c8edf98e86176d007bc8ad1c86c9675528
treeffeb4d84f6cdfc38dcd405976e3425af84b7276f
parentbf259e253f0d27323756fb434ba6e94d50846021
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.
gdb/ChangeLog
gdb/value.c
This page took 0.02737 seconds and 4 git commands to generate.