]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix typo in value-dynamic-type
authorAndy Wingo <wingo@igalia.com>
Wed, 11 Mar 2015 13:32:23 +0000 (14:32 +0100)
committerAndy Wingo <wingo@igalia.com>
Wed, 11 Mar 2015 13:32:56 +0000 (14:32 +0100)
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.

gdb/ChangeLog
gdb/guile/scm-value.c

index 4066a793d0b6ba71f941737c81987bbb709cfdea..d496ffd934c62be7651b30b4966fd1034cabbdde 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-11  Andy Wingo  <wingo@igalia.com>
+
+       * 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  <wingo@igalia.com>
 
        * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
index b10460de917ff526ab34c295983a73b610817864..3789c38e54a27a7d2107af573bc23e67645077f6 100644 (file)
@@ -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