* [PATCH] Fix value-dynamic-type
@ 2015-02-20 8:56 Andy Wingo
2015-02-22 17:37 ` Doug Evans
0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2015-02-20 8:56 UTC (permalink / raw)
To: gdb-patches; +Cc: Andy Wingo, Doug Evans
[-- Attachment #1: Type: text/plain, Size: 110 bytes --]
Hi,
The attached patch fixes a typo in value-dynamic-type that could cause
it to return #<undefined>.
Andy
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-typo-in-value-dynamic-type.patch --]
[-- Type: text/x-diff, Size: 1445 bytes --]
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(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34bfba9..575a753 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c
index cacc55c..f62eb0b 100644
--- a/gdb/guile/scm-value.c
+++ b/gdb/guile/scm-value.c
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix value-dynamic-type
2015-02-20 8:56 [PATCH] Fix value-dynamic-type Andy Wingo
@ 2015-02-22 17:37 ` Doug Evans
0 siblings, 0 replies; 2+ messages in thread
From: Doug Evans @ 2015-02-22 17:37 UTC (permalink / raw)
To: Andy Wingo; +Cc: gdb-patches
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-22 17:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20 8:56 [PATCH] Fix value-dynamic-type Andy Wingo
2015-02-22 17:37 ` Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).