Use gdbpy_enter in py-inferior.c
authorTom Tromey <tom@tromey.com>
Mon, 7 Nov 2016 23:06:26 +0000 (16:06 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:41 +0000 (19:13 -0700)
commit07bc7329128028e6d3e2733c6d2ebd874367bcee
tree7d214006d28c754329ab221d5ea9a981a8cb0603
parent6e7c365ee0ea2551f9f840b71081fdf759088b5e
Use gdbpy_enter in py-inferior.c

Change py-inferior.c to use gdbpy_enter.

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

* python/py-inferior.c (python_on_normal_stop, python_on_resume)
(python_on_inferior_call_pre, python_on_inferior_call_post)
(python_on_memory_change, python_on_register_change)
(python_inferior_exit, python_new_objfile, add_thread_object)
(delete_thread_object, py_free_inferior): Use gdbpy_enter.
gdb/ChangeLog
gdb/python/py-inferior.c