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.
This commit is contained in:
parent
a88b13c7e3
commit
396a78b627
2 changed files with 5 additions and 1 deletions
|
@ -321,7 +321,7 @@ python_interactive_command (char *arg, int from_tty)
|
|||
|
||||
arg = skip_spaces (arg);
|
||||
|
||||
ensure_python_env (get_current_arch (), current_language);
|
||||
gdbpy_enter enter_py (get_current_arch (), current_language);
|
||||
|
||||
if (arg && *arg)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue