Use gdbpy_enter in python_interactive_command
authorTom Tromey <tom@tromey.com>
Tue, 8 Nov 2016 22:15:01 +0000 (15:15 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:48 +0000 (19:13 -0700)
commit396a78b6271c45410fc22c4bc7f8cff75da3d153
treef71459c4a00509ef2319bbf2d4bdc70b6caadf40
parenta88b13c7e36e8eb0a3bf772d508380682536c0da
Use gdbpy_enter in python_interactive_command

This changes python_interactive_command to use gdbpy_enter.
Previously this function was leaving a dangling cleanup -- this is
sort of ok in a command function, but IMO it's still better to clean
up.

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

* python/python.c (python_interactive_command): Use gdbpy_enter.
gdb/ChangeLog
gdb/python/python.c
This page took 0.028401 seconds and 4 git commands to generate.