From patchwork Mon Nov 12 09:17:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Darrington X-Patchwork-Id: 30114 Received: (qmail 94128 invoked by alias); 12 Nov 2018 09:18:07 -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 94108 invoked by uid 89); 12 Nov 2018 09:18:06 -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=H*MI:john 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, 12 Nov 2018 09:18:06 +0000 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-8) with ESMTPS id wAC9I3j4028092 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Nov 2018 10:18:03 +0100 Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id wAC9I3u2028091; Mon, 12 Nov 2018 10:18:03 +0100 From: John Darrington To: gdb-patches@sourceware.org Cc: John Darrington Subject: [PATCH 1/2] GDB: S12Z: Add assertion Date: Mon, 12 Nov 2018 10:17:20 +0100 Message-Id: <20181112091721.28040-1-john@darrington.wattle.id.au> --- gdb/s12z-tdep.c | 1 + 1 file changed, 1 insertion(+) 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). */