Commit Message
Hi,
The attached patch fixes a typo in value-dynamic-type that could cause
it to return #<undefined>.
Andy
Comments
Andy Wingo <wingo@igalia.com> writes:
> Hi,
>
> The attached patch fixes a typo in value-dynamic-type that could cause
> it to return #<undefined>.
>
> Andy
>
>
> From c428975bbbf4521766e13d158b12f41392c6bc5e Mon Sep 17 00:00:00 2001
> From: Andy Wingo <wingo@igalia.com>
> Date: Fri, 20 Feb 2015 09:55:25 +0100
> Subject: [PATCH] Fix typo in value-dynamic-type
>
> gdb/ChangeLog:
> 2015-02-20 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.
LGTM
From c428975bbbf4521766e13d158b12f41392c6bc5e Mon Sep 17 00:00:00 2001
From: Andy Wingo <wingo@igalia.com>
Date: Fri, 20 Feb 2015 09:55:25 +0100
Subject: [PATCH] Fix typo in value-dynamic-type
gdb/ChangeLog:
2015-02-20 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.
---
gdb/ChangeLog | 5 +++++
gdb/guile/scm-value.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -1,5 +1,10 @@
2015-02-20 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-02-20 Andy Wingo <wingo@igalia.com>
+
* guile/scm-frame.c (gdbscm_frame_read_register): New function.
(frame_functions): Bind gdbscm_frame_read_register to
frame-read-register.
@@ -552,7 +552,7 @@ gdbscm_value_dynamic_type (SCM self)
struct type *type = NULL;
volatile struct gdb_exception except;
- if (! SCM_UNBNDP (v_smob->type))
+ if (! SCM_UNBNDP (v_smob->dynamic_type))
return v_smob->dynamic_type;
TRY_CATCH (except, RETURN_MASK_ALL)
--
2.1.4