From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway31.websitewelcome.com (gateway31.websitewelcome.com [192.185.143.51]) by sourceware.org (Postfix) with ESMTPS id 3AAFC3851C3C for ; Wed, 10 Jun 2020 14:46:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3AAFC3851C3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 85D5CCA438 for ; Wed, 10 Jun 2020 09:46:47 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id j207jgLO5hmVTj207jaLoR; Wed, 10 Jun 2020 09:46:47 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pIJYnlrhes99A9DfilsAaLL7E9AGn29+E6Si8/EYWY4=; b=lDX+O2nUlgPXYzfLY+MlRos+Vw 73/3ZVoyKemILb6vSNIfr+Ys3jrHh8YcBxGemcYnwZpF5McIJZKzO/cl5RssgHfn6+7gf0+3QYp1F pIRCFA+1z0CeI1Acdac0ADDg1; Received: from 174-16-104-48.hlrn.qwest.net ([174.16.104.48]:56162 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jj207-002FD6-0V; Wed, 10 Jun 2020 08:46:47 -0600 From: Tom Tromey To: Tom Tromey Cc: Andrew Burgess , Nelson Chu , gdb-patches@sourceware.org Subject: Re: [RFC] gdb/riscv: Improved register alias name creation References: <1584007257-14466-1-git-send-email-nelson.chu@sifive.com> <87r1upefg8.fsf@tromey.com> <20200609173040.GE2737@embecosm.com> <87pna855a8.fsf@tromey.com> <20200609225836.GH2737@embecosm.com> <87y2ov3wvm.fsf@tromey.com> <87mu5b3vm3.fsf@tromey.com> X-Attribution: Tom Date: Wed, 10 Jun 2020 08:46:46 -0600 In-Reply-To: <87mu5b3vm3.fsf@tromey.com> (Tom Tromey's message of "Wed, 10 Jun 2020 07:20:52 -0600") Message-ID: <87d0673rmx.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.104.48 X-Source-L: No X-Exim-ID: 1jj207-002FD6-0V X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-104-48.hlrn.qwest.net (murgatroyd) [174.16.104.48]:56162 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, KAM_LOTSOFHASH, LOTS_OF_MONEY, RCVD_IN_ABUSEAT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SBL_CSS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP, URIBL_CSS, URIBL_CSS_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Wed, 10 Jun 2020 14:46:51 -0000 --=-=-= Content-Type: text/plain Tom> The first attachment is the log from git master. Tom> Here's what I did: Tom> (gdb) tar rem :7960 Tom> Remote debugging using :7960 Tom> 0x0000000000001000 in ?? () Tom> (gdb) print $dscratch Tom> Could not fetch register "dscratch"; remote failure reply 'E14' Tom> (gdb) print $dscratch0 Tom> $1 = void Tom> (gdb) print $mucounteren Tom> Could not fetch register "mucounteren"; remote failure reply 'E14' I didn't apply your patch before that run. Here's with your patch: (gdb) tar rem :7960 Remote debugging using :7960 0x0000000000001000 in ?? () (gdb) print $dscratch $1 = void (gdb) print $dscratch0 Could not fetch register "dscratch0"; remote failure reply 'E14' (gdb) print $mucounteren Could not fetch register "mucounteren"; remote failure reply 'E14' Tom --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=wp Content-Transfer-Encoding: quoted-printable Content-Description: log with patch w +$qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfo= rk-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+;xmlRegis= ters=3Di386#6a r +$PacketSize=3D1000;qXfer:features:read+;multiprocess+#5c w +$vMustReplyEmpty#3a r +$#00 w +$Hgp0.0#ad r +$OK#9a w +$qXfer:features:read:target.xml:0,ffb#79 r +$l#ca w +$qXfer:features:read:riscv-64bit-cpu.xml:0,ffb#64 r +$l\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n<= /feature>\n#3d w +$qXfer:features:read:riscv-64bit-fpu.xml:0,ffb#67 r +$m\n\n\n\n\n\n\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \= n\n \n \n \n\n#55 w +$qXfer:features:read:riscv-64bit-csr.xml:0,ffb#64 r +$m\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n= \n \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \= n \n \n \n \n \n \n \n \n \n \n \n \n \n \n= \n \n \n \n \n \n \n \n \n= \n \n \n \n \n \n \= n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <= reg name=3D"mhpmcounter13" bitsize=3D"64"/>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n \n \n = \n \n \n \n = \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n \n \n \n \n \n = \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \= n \n \n \n \n \n \n \n\n#9f w +$qTStatus#49 r +$#00 w +$?#3f r +$T05thread:p01.01;#06 w +$qfThreadInfo#bb r +$mp01.01#cd w +$qsThreadInfo#c8 r +$l#6c w +$qAttached:1#fa r +$0#30 w +$Hc-1#09 r +$OK#9a w +$qOffsets#4b r +$#00 w +$g#67 r +$00000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000001000000= 0000000#01 w +$qfThreadInfo#bb r +$mp01.01#cd w +$qsThreadInfo#c8 r +$l#6c w +$m1000,4#8e r +$97020000#92 w +$mffc,4#fc r +$00000000#80 w +$qSymbol::#5b r +$#00 w + c print $dscratch c print $dscratch0 w $p121#04 r +$E14#aa w + End of log --=-=-=--