Use gdbpy_enter in cmdpy_function
authorTom Tromey <tom@tromey.com>
Sat, 12 Nov 2016 18:12:41 +0000 (11:12 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:52 +0000 (19:13 -0700)
commit12a5cedd4f2c5b1f4e303efda6f8ac3e06eec944
treed6ff5c796adacfb52ad115776031ccd7a25355d6
parent788f258604773ccbe9ccba71f9b1725930324275
Use gdbpy_enter in cmdpy_function

This changes cmdpy_function to use gdbpy_enter and gdbpy_ref.

2017-01-10  Tom Tromey  <tom@tromey.com>

* python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
gdb/ChangeLog
gdb/python/py-cmd.c