[binutils-gdb] Change value::contents to be a unique_xmalloc_ptr

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Sat Apr 7 00:40:00 GMT 2018


*** TEST RESULTS FOR COMMIT 14c88955a138c24577e703d11f4d25c44a64d0be ***

Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 14c88955a138c24577e703d11f4d25c44a64d0be

Change value::contents to be a unique_xmalloc_ptr

This changes value::contents to be a unique_xmalloc_ptr, removing a
small bit of manual memory management.

gdb/ChangeLog
2018-04-06  Tom Tromey  <tom@tromey.com>

	* value.c (~value): Update.
	(struct value) <contents>: Now unique_xmalloc_ptr.
	(value_contents_bits_eq, allocate_value_contents)
	(value_contents_raw, value_contents_all_raw)
	(value_contents_for_printing, value_contents_for_printing_const)
	(set_value_enclosing_type): Update.



More information about the Gdb-testers mailing list