This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Change Python code to use new_reference
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 30 Apr 2018 18:16:45 -0400
- Subject: [binutils-gdb] Change Python code to use new_reference
*** 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.