mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 05:14:18 +08:00
* python/python.c (gdbpy_value_cst): New global.
(_initialize_python): Initialize it. * python/python-internal.h (gdbpy_value_cst): Declare. * python/py-value.c (convert_value_from_python): Use gdbpy_value_cst.
This commit is contained in:
@ -1162,9 +1162,8 @@ convert_value_from_python (PyObject *obj)
|
||||
else if (gdbpy_is_lazy_string (obj))
|
||||
{
|
||||
PyObject *result;
|
||||
PyObject *function = PyString_FromString ("value");
|
||||
|
||||
result = PyObject_CallMethodObjArgs (obj, function, NULL);
|
||||
result = PyObject_CallMethodObjArgs (obj, gdbpy_value_cst, NULL);
|
||||
value = value_copy (((value_object *) result)->value);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user