diff options
Diffstat (limited to 'gdb/c-varobj.c')
-rw-r--r-- | gdb/c-varobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c index 0009424..3e3919a 100644 --- a/gdb/c-varobj.c +++ b/gdb/c-varobj.c @@ -257,7 +257,7 @@ value_struct_element_index (struct value *value, int type_index) if (field_is_static (&type->field (type_index))) result = value_static_field (type, type_index); else - result = value_primitive_field (value, 0, type_index, type); + result = value->primitive_field (0, type_index, type); } catch (const gdb_exception_error &e) { |