]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Change Python code to use new_reference
authorTom Tromey <tom@tromey.com>
Mon, 30 Apr 2018 03:09:02 +0000 (21:09 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 30 Apr 2018 17:33:12 +0000 (11:33 -0600)
commit7c66fffc1f3dae0b921ae3cf8139824804cf0705
treeb29ace0914f695020f83d745b35062f8e3971f1a
parentbbfa6f00867946985b954bbec233c0f25f14ac5c
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.
gdb/ChangeLog
gdb/python/py-cmd.c
gdb/python/python.c
gdb/varobj.c