From patchwork Mon Nov 19 16:47:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Darrington X-Patchwork-Id: 30200 Received: (qmail 75579 invoked by alias); 19 Nov 2018 16:47:40 -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 75257 invoked by uid 89); 19 Nov 2018 16:47:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: jocasta.intra Received: from de.cellform.com (HELO jocasta.intra) (88.217.224.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Nov 2018 16:47:39 +0000 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-8) with ESMTPS id wAJGlaFL031069 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Nov 2018 17:47:36 +0100 Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id wAJGlakK031068; Mon, 19 Nov 2018 17:47:36 +0100 From: John Darrington To: gdb-patches@sourceware.org Cc: John Darrington Subject: [PATCH] GDB: S12Z: Add assertion Date: Mon, 19 Nov 2018 17:47:34 +0100 Message-Id: <20181119164734.31022-1-john@darrington.wattle.id.au> In-Reply-To: <20181117145928.726522e6@pinnacle.lan> References: <20181117145928.726522e6@pinnacle.lan> gdb/ChangeLog: * s12z-tdep.c (s12z_frame_cache): Add an assertion. --- gdb/ChangeLog | 8 ++++++++ gdb/s12z-tdep.c | 1 + 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4fa0b42657..990cfc3f9d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-11-19 John Darrington + + *s12z-tdep.c (s12z_frame_cache): Add an assertion. + 2018-11-18 Tom Tromey PR build/23814: @@ -216,6 +220,10 @@ frame cache, leave the frame id as the default, which is the outer frame id. +2018-11-14 John Darrington + + * s12z-tdep.c (s12z_frame_cache): Add an assertion. + 2018-11-07 Joel Brobecker * ada-lang.c (read_atcb): Only set task_info->called_task if diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c index 79f5772035..bd0bd7c001 100644 --- a/gdb/s12z-tdep.c +++ b/gdb/s12z-tdep.c @@ -320,6 +320,7 @@ s12z_frame_cache (struct frame_info *this_frame, void **prologue_cache) } else { + gdb_assert (this_sp == this_sp_for_id); /* The stack pointer of the prev frame is frame_size greater than the stack pointer of this frame plus one address size (caused by the JSR or BSR). */