aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-type.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 1c7cacb..3fc0f61 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -471,6 +471,7 @@ typy_get_composite (struct type *type)
if (type->code () != TYPE_CODE_STRUCT
&& type->code () != TYPE_CODE_UNION
&& type->code () != TYPE_CODE_ENUM
+ && type->code () != TYPE_CODE_METHOD
&& type->code () != TYPE_CODE_FUNC)
{
PyErr_SetString (PyExc_TypeError,