mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
Remove ensure_python_env
All of gdb has been converted away from ensure_python_env and varobj_ensure_python_env now; so remove them. 2017-01-10 Tom Tromey <tom@tromey.com> * python/python.c (ensure_python_env, restore_python_env): Remove. * python/python-internal.h (ensure_python_env): Don't declare. * varobj.h (varobj_ensure_python_env): Don't declare. * varobj.c (varobj_ensure_python_env): Remove.
This commit is contained in:
@ -226,14 +226,6 @@ is_root_p (const struct varobj *var)
|
||||
}
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
/* Helper function to install a Python environment suitable for
|
||||
use during operations on VAR. */
|
||||
struct cleanup *
|
||||
varobj_ensure_python_env (const struct varobj *var)
|
||||
{
|
||||
return ensure_python_env (var->root->exp->gdbarch,
|
||||
var->root->exp->language_defn);
|
||||
}
|
||||
|
||||
/* See python-internal.h. */
|
||||
gdbpy_enter_varobj::gdbpy_enter_varobj (const struct varobj *var)
|
||||
|
Reference in New Issue
Block a user