From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +RbMJPg8g2pdRS0AWB0awg (envelope-from ) for ; Mon, 17 Aug 2026 12:55:20 -0400 Received: by simark.ca (Postfix, from userid 112) id 93C5F1E0A3; Mon, 17 Aug 2026 12:55:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id F12C01E033 for ; Mon, 17 Aug 2026 12:55:19 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25B2B4B99F54 for ; Mon, 17 Aug 2026 16:55:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25B2B4B99F54 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by sourceware.org (Postfix) with ESMTP id 711BC4BAE7F5 for ; Mon, 17 Aug 2026 16:54:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 711BC4BAE7F5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 711BC4BAE7F5 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786985643; cv=none; b=PNa5cdzGuVDyj/zFsYqNSbxbYYiHa2J0HFU5AxBgtp+jXCZdLVIdb+xMVeQap9/PKY84CRQWDBdUFNawXyHpIclAnD+4duaOZSG2qORTA6HYQCbv6Ypcy9BOHQOznhfygvB7rO+nILm2Mj7rlHBnLl5/pKYho2qYpuLwuED5xTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786985643; c=relaxed/simple; bh=kF5i6IrMIiStKwqMZmdyb49m1rKn57jOPQKDOt9F1PE=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=HHlw7ue0qRilJUqcCkRsAj/ayx0uKAGeb4L7CGEmss0LhsuD9lxTTai8cT70RwiPB2/dwBR3A4Mtqy1NTHy95C9rbjMgv4It3QENCsFJs+LhxgC8RU6cNSaJdJEM7scQWgSrsd9plGb+KP0wnHbP3tCILnDvGgX8E6c8oUFWzf8= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 711BC4BAE7F5 Received: by angie.orcam.me.uk (Postfix, from userid 500) id ED1AF9200B4; Mon, 17 Aug 2026 18:54:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E74D492009B; Mon, 17 Aug 2026 17:54:02 +0100 (BST) Date: Mon, 17 Aug 2026 17:54:02 +0100 (BST) From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Jovan Dmitrovic , Djordje Todorovic , Milica Matic , "Maciej W. Rozycki" Subject: [PATCH v2 09/12] MIPS: Reorder a reference to "BGTZ, BGTZL" in `mips32_next_pc' In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Maciej W. Rozycki" Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: Maciej W. Rozycki Move a reference to "BGTZ, BGTZL" in `mips32_next_pc' to the leading case label as with the other instructions called out in the function. Approved-By: Maciej W. Rozycki --- No change from v1 (7/7), . --- gdb/mips-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) gdb-mips-next-pc-bgtz-comment.diff Index: binutils-gdb/gdb/mips-tdep.c =================================================================== --- binutils-gdb.orig/gdb/mips-tdep.c +++ binutils-gdb/gdb/mips-tdep.c @@ -1822,9 +1822,9 @@ mips32_next_pc (struct regcache *regcach else pc += 8; break; - case 7: + case 7: /* BGTZ, BGTZL */ default: - greater_branch: /* BGTZ, BGTZL */ + greater_branch: if (regcache_raw_get_signed (regcache, itype_rs (inst)) > 0) pc += mips32_relative_offset (inst) + 4; else