+2016-11-07 Doug Evans <dje@google.com>
+
+ * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
+ * python/py-value.c (valpy_getitem): Ditto.
+
2016-11-07 Doug Evans <dje@google.com>
* i386-tdep.c (i386_gdbarch_init): Add comments.
{
struct value *tmp = value;
- res_val = value_struct_elt (&tmp, NULL, field, NULL, NULL);
+ res_val = value_struct_elt (&tmp, NULL, field, NULL,
+ "struct/class/union");
}
CATCH (except, RETURN_MASK_ALL)
{
struct value *res_val = NULL;
if (field)
- res_val = value_struct_elt (&tmp, NULL, field, 0, NULL);
+ res_val = value_struct_elt (&tmp, NULL, field, NULL,
+ "struct/class/union");
else if (bitpos >= 0)
res_val = value_struct_elt_bitpos (&tmp, bitpos, field_type,
"struct/class/union");