diff options
author | Andy Wingo <wingo@igalia.com> | 2015-03-11 14:32:23 +0100 |
---|---|---|
committer | Andy Wingo <wingo@igalia.com> | 2015-03-11 14:32:56 +0100 |
commit | 1390d0efa6a03a3780541aa8100c7b52402e793d (patch) | |
tree | 486f15658d43dbd57701211872210f1cf8778bd3 | |
parent | 84a4591a7ba0c83c165cde85898086e9a4019b0d (diff) | |
download | gdb-1390d0efa6a03a3780541aa8100c7b52402e793d.zip gdb-1390d0efa6a03a3780541aa8100c7b52402e793d.tar.gz gdb-1390d0efa6a03a3780541aa8100c7b52402e793d.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/guile/scm-value.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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 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 |