[binutils-gdb] Change Python code to use new_reference

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Mon Apr 30 22:16:00 GMT 2018


*** TEST RESULTS FOR COMMIT 7c66fffc1f3dae0b921ae3cf8139824804cf0705 ***

Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 7c66fffc1f3dae0b921ae3cf8139824804cf0705

Change Python code to use new_reference

This changes a few spots in the Python code to use new_reference
rather than the manual incref+constructor that was previously being
done.

ChangeLog
2018-04-30  Tom Tromey  <tom@tromey.com>

	* varobj.c (varobj_set_visualizer): Use new_reference.
	* python/python.c (gdbpy_decode_line): Use new_reference.
	* python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
	new_reference.



More information about the Gdb-testers mailing list