From: Andy Wingo Date: Wed, 11 Mar 2015 13:32:23 +0000 (+0100) Subject: Fix typo in value-dynamic-type X-Git-Tag: users/hjl/linux/release/2.25.51.0.2~2^2~31^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1390d0efa6a03a3780541aa8100c7b52402e793d;p=thirdparty%2Fbinutils-gdb.git Fix typo in value-dynamic-type gdb/ChangeLog: * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which we were checking the cached type, not the cached dynamic type. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4066a793d0b..d496ffd934c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-03-11 Andy Wingo + + * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which + we were checking the cached type, not the cached dynamic type. + 2015-03-11 Andy Wingo * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c index b10460de917..3789c38e54a 100644 --- a/gdb/guile/scm-value.c +++ b/gdb/guile/scm-value.c @@ -572,7 +572,7 @@ gdbscm_value_dynamic_type (SCM self) struct value *value = v_smob->value; struct type *type = NULL; - if (! SCM_UNBNDP (v_smob->type)) + if (! SCM_UNBNDP (v_smob->dynamic_type)) return v_smob->dynamic_type; TRY