From 1390d0efa6a03a3780541aa8100c7b52402e793d Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 11 Mar 2015 14:32:23 +0100 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/guile/scm-value.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4066a79..d496ffd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 other strings, as these are on the GC'd heap, and will be collected along with the smob. diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c index b10460d..3789c38 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 -- 2.7.4