diff options
author | Doug Evans <dje@google.com> | 2016-11-07 13:31:24 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2016-11-07 13:31:24 -0800 |
commit | 5996220cfa24ef6fddb782617720cd56913b1bb7 (patch) | |
tree | ee456ac21b112fe28ab29aa01e7f80c7bfc8a432 /gdb/guile/scm-value.c | |
parent | ad9eb1fdda263cd91ee8fb36292fb29d546b0076 (diff) | |
download | gdb-5996220cfa24ef6fddb782617720cd56913b1bb7.zip gdb-5996220cfa24ef6fddb782617720cd56913b1bb7.tar.gz gdb-5996220cfa24ef6fddb782617720cd56913b1bb7.tar.bz2 |
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.
Diffstat (limited to 'gdb/guile/scm-value.c')
-rw-r--r-- | gdb/guile/scm-value.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c index 1cdf953..416e488 100644 --- a/gdb/guile/scm-value.c +++ b/gdb/guile/scm-value.c @@ -726,7 +726,8 @@ gdbscm_value_field (SCM self, SCM field_scm) { 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) { |