This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Clear entire "location" in value constructor
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 25 May 2018 18:31:37 -0400
- Subject: [binutils-gdb] Clear entire "location" in value constructor
*** TEST RESULTS FOR COMMIT 41a883c8edf98e86176d007bc8ad1c86c9675528 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 41a883c8edf98e86176d007bc8ad1c86c9675528
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.