Use gdbpy_enter in python.c
authorTom Tromey <tom@tromey.com>
Mon, 7 Nov 2016 23:11:37 +0000 (16:11 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:43 +0000 (19:13 -0700)
commit60e600ec691255536ae53e365d0410ecf79bdea2
tree8b841299acf4bbc6a4de175b6a8d3b64ae05c149
parentbf7da5b06ffbbaa40c8a2900727a791265f897ea
Use gdbpy_enter in python.c

Change the simple parts of python.c to use gdbpy_enter.

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

* python/python.c (gdbpy_eval_from_control_command)
(gdbpy_source_script, gdbpy_run_events)
(gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
(gdbpy_free_type_printers, gdbpy_finish_initialization): Use
gdbpy_enter.
gdb/ChangeLog
gdb/python/python.c