2009-12-03 Richard Ward <richard.j.ward1@googlemail.com>
[deliverable/binutils-gdb.git] / gdb / python / py-type.c
index 590d90a9083f7e18210ce4dc940efcac38cb5c7d..e73185ea8816bf3de77e2e879a38ad186f87dc71 100644 (file)
@@ -169,6 +169,14 @@ convert_field (struct type *type, int field)
   if (PyObject_SetAttrString (result, "artificial", arg) < 0)
     goto failarg;
 
+  if (TYPE_CODE (type) == TYPE_CODE_CLASS)
+    arg = field < TYPE_N_BASECLASSES (type) ? Py_True : Py_False;
+  else
+    arg = Py_False;
+  Py_INCREF (arg);
+  if (PyObject_SetAttrString (result, "is_base_class", arg) < 0)
+    goto failarg;
+
   arg = PyLong_FromLong (TYPE_FIELD_BITSIZE (type, field));
   if (!arg)
     goto fail;
This page took 0.024221 seconds and 4 git commands to generate.