From patchwork Fri Feb 20 08:56:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Wingo X-Patchwork-Id: 5204 Received: (qmail 14199 invoked by alias); 20 Feb 2015 08:56:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 14183 invoked by uid 89); 20 Feb 2015 08:56:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_NEUTRAL autolearn=ham version=3.3.2 X-HELO: sasl.smtp.pobox.com Received: from pb-sasl1.int.icgroup.com (HELO sasl.smtp.pobox.com) (208.72.237.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Feb 2015 08:56:53 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 45EFE33EDF; Fri, 20 Feb 2015 03:56:51 -0500 (EST) Received: from pb-sasl1.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 0CD5833EDE; Fri, 20 Feb 2015 03:56:51 -0500 (EST) Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 5F7AF33EDC; Fri, 20 Feb 2015 03:56:49 -0500 (EST) From: Andy Wingo To: gdb-patches@sourceware.org Cc: Andy Wingo , Doug Evans Subject: [PATCH] Fix value-dynamic-type Date: Fri, 20 Feb 2015 09:56:47 +0100 Message-ID: <87mw490xm8.fsf@igalia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 X-Pobox-Relay-ID: 689EA3BE-B8DE-11E4-98F1-8FDD009B7A5A-02397024!pb-sasl1.pobox.com Hi, The attached patch fixes a typo in value-dynamic-type that could cause it to return #. Andy From c428975bbbf4521766e13d158b12f41392c6bc5e Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 20 Feb 2015 09:55:25 +0100 Subject: [PATCH] Fix typo in value-dynamic-type gdb/ChangeLog: 2015-02-20 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. --- 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 + * 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 + * 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