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.
This commit is contained in:
parent
ad9eb1fdda
commit
5996220cfa
3 changed files with 9 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue