mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
Introduce gdbpy_enter_varobj and use it
This introduces gdbpy_enter_varobj, a subclass of gdbpy_enter; then changes one function in py-varobj.c to use it. gdbpy_enter_varobj takes a varobj as an argument, similar to varobj_ensure_python_env. 2017-01-10 Tom Tromey <tom@tromey.com> * varobj.c (gdbpy_enter_varobj): New constructor. * python/python-internal.h (gdbpy_enter_varobj): New class. * python/py-varobj.c (py_varobj_get_iterator): Use gdbpy_enter_varobj.
This commit is contained in:
@ -233,6 +233,13 @@ 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)
|
||||
: gdbpy_enter (var->root->exp->gdbarch, var->root->exp->language_defn)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* Return the full FRAME which corresponds to the given CORE_ADDR
|
||||
|
Reference in New Issue
Block a user