Commit f456f6c6c4ee880fd15b4e18eefc3e30fca05602
- Date: Sun Apr 27 16:03:11 +0000 2008
- Committer: Thiago Jung Bauermann (bauerman@br.ibm.com)
- Author: Thiago Jung Bauermann (bauerman@br.ibm.com)
- Commit SHA1: f456f6c6c4ee880fd15b4e18eefc3e30fca05602
- Tree SHA1: dbafee420251d3043e1ddcfb317d7b316a9559d2
Make varobj.c compile with -O2.
Commit diff
| |   |
| 884 | 884 | if (!PyArg_ParseTuple (item, "sO", &name, &py_v)) |
| 885 | 885 | error ("Invalid item from the child list"); |
| 886 | 886 | |
| 887 | | if (!PyObject_IsInstance (py_v, (PyObject *)&value_object_type)) |
| 887 | if (!PyObject_TypeCheck (py_v, &value_object_type)) |
| 888 | 888 | error ("child list has object of invalid type"); |
| 889 | 889 | |
| 890 | 890 | v = value_object_to_value (py_v); |
| toggle raw diff |
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -884,7 +884,7 @@ int update_dynamic_varobj_children (struct varobj *var,
if (!PyArg_ParseTuple (item, "sO", &name, &py_v))
error ("Invalid item from the child list");
- if (!PyObject_IsInstance (py_v, (PyObject *)&value_object_type))
+ if (!PyObject_TypeCheck (py_v, &value_object_type))
error ("child list has object of invalid type");
v = value_object_to_value (py_v); |