diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-06 17:19:06 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-06 17:19:06 -0800 |
commit | 4753d33b404f07e749f648c57ae61e3984d40029 (patch) | |
tree | 1d0999b959a4f9fc5dbb2f816de59b82dfe0edc6 /gdb/python | |
parent | 9c1877ead06db18e19614a598d1e280acb97e971 (diff) | |
download | gdb-4753d33b404f07e749f648c57ae61e3984d40029.zip gdb-4753d33b404f07e749f648c57ae61e3984d40029.tar.gz gdb-4753d33b404f07e749f648c57ae61e3984d40029.tar.bz2 |
Delete TYPE_CODE_CLASS, it's just an alias of TYPE_CODE_STRUCT.
gdb/ChangeLog:
* gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
TYPE_CODE_STRUCT.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-type.c | 2 | ||||
-rw-r--r-- | gdb/python/py-value.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 29a3500..6d5ff85 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -232,7 +232,7 @@ convert_field (struct type *type, int field) goto failarg; Py_DECREF (arg); - if (TYPE_CODE (type) == TYPE_CODE_CLASS) + if (TYPE_CODE (type) == TYPE_CODE_STRUCT) arg = field < TYPE_N_BASECLASSES (type) ? Py_True : Py_False; else arg = Py_False; diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 4313170..a1a7a1d 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -302,7 +302,7 @@ valpy_get_dynamic_type (PyObject *self, void *closure) if (((TYPE_CODE (type) == TYPE_CODE_PTR) || (TYPE_CODE (type) == TYPE_CODE_REF)) - && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_CLASS)) + && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_STRUCT)) { struct value *target; int was_pointer = TYPE_CODE (type) == TYPE_CODE_PTR; @@ -321,7 +321,7 @@ valpy_get_dynamic_type (PyObject *self, void *closure) type = lookup_reference_type (type); } } - else if (TYPE_CODE (type) == TYPE_CODE_CLASS) + else if (TYPE_CODE (type) == TYPE_CODE_STRUCT) type = value_rtti_type (val, NULL, NULL, NULL); else { |