From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8HyDMthIP2E9JAAAWB0awg (envelope-from ) for ; Mon, 13 Sep 2021 08:49:28 -0400 Received: by simark.ca (Postfix, from userid 112) id CD0EC1EE25; Mon, 13 Sep 2021 08:49:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D4E7B1EDF0 for ; Mon, 13 Sep 2021 08:49:27 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 73DE03858002 for ; Mon, 13 Sep 2021 12:49:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73DE03858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1631537367; bh=BV7gD2kzfv2KUk221Rhnowd/IEEKYROz7IWt5yMJ5lI=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=oZCUkqe0KVsdKIMauv4RGD2jWbktwoN5YShgLGWPGiFTqpjLydJv/LtRKLsucTKq8 Nk0br8X/TbXvLTJZ0feGTMvYLq+JPS8FcehxYALS7QyorD5bA88xRO+07nmA3tbxws a06NYWNAKlrl3d4ceSlFJM3R91h+TMCdxMbw6oHk= Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by sourceware.org (Postfix) with ESMTPS id 8BC3A3857C7F for ; Mon, 13 Sep 2021 12:48:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8BC3A3857C7F Received: by mail-pj1-x1031.google.com with SMTP id gp20-20020a17090adf1400b00196b761920aso6387560pjb.3 for ; Mon, 13 Sep 2021 05:48:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BV7gD2kzfv2KUk221Rhnowd/IEEKYROz7IWt5yMJ5lI=; b=wj+0/d1tIjvcGsNqwKz4K0lPeEkJEN74B8Ikcl/GuPmFimHCqAWRR7tmsRah3JT8ai cfGuC0YeBcoSBJ3zIFZifuLnc5Ilofsgx/YVFX2xC0+EbT1s2N0+SFINn0Z992it0Vqn bRcjjIw24vAOpKG75Z+cC0/qEjWdXRrUZkb6a7TbqEZtP882DUKizneOO9n2PuBUdqyd kiZ71xfHv7xZDTzxG80WnQcHlWR7DKyi5Cxaqkaca0DS84j75KeT/1tmLp3HhDe7s04H aFrc03kGArhS1CekFWdAtsMetyHsy8ggQuBb0sRbvc7WjfBghGja3OKqqLP0fBO03/z8 xu3A== X-Gm-Message-State: AOAM531cI9i1cLw8i5wunvgKV/7iIEPZEkGebqt1ZJbUPkTB0qOoOCJP XexAZSUdsrgviPq07f1GMq21FNJuVRI= X-Google-Smtp-Source: ABdhPJy/QXmL8wH0ZebhWBhgShNSMmUqDWJpgseVpkz3vxUlg/kskFLS+Zv7CnYcxmSC8pdxyelqdw== X-Received: by 2002:a17:902:8b83:b029:12c:cbce:a52f with SMTP id ay3-20020a1709028b83b029012ccbcea52fmr10198366plb.9.1631537309227; Mon, 13 Sep 2021 05:48:29 -0700 (PDT) Received: from localhost (g245.61-45-50.ppp.wakwak.ne.jp. [61.45.50.245]) by smtp.gmail.com with ESMTPSA id x9sm6974717pjf.52.2021.09.13.05.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 05:48:28 -0700 (PDT) To: GDB patches Subject: [PATCH 2/5] gdb: or1k: fixup linux regcache comment Date: Mon, 13 Sep 2021 21:47:57 +0900 Message-Id: <20210913124800.471680-3-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210913124800.471680-1-shorne@gmail.com> References: <20210913124800.471680-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Stafford Horne via Gdb-patches Reply-To: Stafford Horne Cc: Openrisc Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" The old comment was not properly updated from the RISC-V example used. Update it to match OpenRISC. --- gdb/or1k-linux-tdep.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c index 2ad55f0d9ec..2efb4d0b0f9 100644 --- a/gdb/or1k-linux-tdep.c +++ b/gdb/or1k-linux-tdep.c @@ -27,9 +27,10 @@ #include "trad-frame.h" #include "gdbarch.h" -/* Define the general register mapping. The kernel puts the PC at offset 0, - gdb puts it at offset 32. Register x0 is always 0 and can be ignored. - Registers x1 to x31 are in the same place. */ +/* Define the general register mapping. The kernel and GDB put registers + r1 to r31 in the same place. The NPC register is stored at index 32 in + linux and 33 in GDB, in GDB 32 is for PPC which is not popupated from linux. + Register r0 is always 0 and can be ignored. */ static const struct regcache_map_entry or1k_linux_gregmap[] = { -- 2.31.1