From 5996220cfa24ef6fddb782617720cd56913b1bb7 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 7 Nov 2016 13:31:24 -0800 Subject: Fix ext lang calls to value_struct_elt. gdb/ChangeLog: * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt. * python/py-value.c (valpy_getitem): Ditto. --- gdb/python/py-value.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/python/py-value.c') diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 46683b8..f8bf17a 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -754,7 +754,8 @@ valpy_getitem (PyObject *self, PyObject *key) 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"); -- cgit v1.1