diff options
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 50b424c..15cbd45 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2013,7 +2013,7 @@ value_struct_element_index (struct value *value, int type_index) TRY_CATCH (e, RETURN_MASK_ERROR) { - if (TYPE_FIELD_STATIC (type, type_index)) + if (field_is_static (&TYPE_FIELD (type, type_index))) result = value_static_field (type, type_index); else result = value_primitive_field (value, 0, type_index, type); |