From 4753d33b404f07e749f648c57ae61e3984d40029 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 6 Nov 2014 17:19:06 -0800 Subject: 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. --- gdb/python/py-value.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python/py-value.c') 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 { -- cgit v1.1