Use gdbpy_enter in py-xmethods.c
authorTom Tromey <tom@tromey.com>
Mon, 7 Nov 2016 23:13:40 +0000 (16:13 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:44 +0000 (19:13 -0700)
commitf18e226ff84f7fba9ce7197ed7a2969eba231b4d
treeadc0234afca2a3684745ef455219344ab4af55e8
parentc57af3f12b91ca49adc2e06056f794cb09514897
Use gdbpy_enter in py-xmethods.c

Change the simple parts of py-xmethods.c to use gdbpy_enter.

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

* python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
(gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
gdb/ChangeLog
gdb/python/py-xmethods.c