This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix typo in value-dynamic-type
- From: Andy Wingo <wingo at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 11 Mar 2015 13:33:34 -0000
- Subject: [binutils-gdb] Fix typo in value-dynamic-type
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1390d0efa6a03a3780541aa8100c7b52402e793d
commit 1390d0efa6a03a3780541aa8100c7b52402e793d
Author: Andy Wingo <wingo@igalia.com>
Date: Wed Mar 11 14:32:23 2015 +0100
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:
---
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 <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