This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Some cleanup removal in dwarf2loc.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 26 Oct 2016 05:31:39 -0400
- Subject: [binutils-gdb] Some cleanup removal in dwarf2loc.c
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 5841433461e2ce9da41292a49af4cc3c6b1e1f2d ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 5841433461e2ce9da41292a49af4cc3c6b1e1f2d
Some cleanup removal in dwarf2loc.c
This removes some cleanups and manual allocation handling in
dwarf2loc.c with std::vector. Note that this patch has a case where
the vector would normally fall into the "use gdb::unique_ptr"
guidelines -- but here because the vector is immediately initialized,
I moved the initialization into the constructor call, for further
code savings.
2016-10-21 Tom Tromey <tom@tromey.com>
* dwarf2loc.c: Include <vector>.
(read_pieced_value, write_pieced_value)
(dwarf2_compile_expr_to_ax): Use std::vector.