From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 4A91A386F439 for ; Tue, 9 Jun 2020 22:30:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4A91A386F439 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wr1-x42c.google.com with SMTP id p5so68565wrw.9 for ; Tue, 09 Jun 2020 15:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MwrpA+guKS/q3KaHmCj9HLh+rvkc2GO94EZnm3d5qVo=; b=YvZTqigC3zlDFN5PsXKDxMIOohs6QfYmhSlu1EJSEFWM3kQ6qutxfQDvvhbNZ3DjQT it/kznOrOYwIzHEDb0kQwyteVhbv3z8Uj2F6WU/htQ5bkfCuyAgigOPfOUUO4BVh918p 2W4aAVy2GPLdin8F2ScHO6DlcdxZ4Yz0bDLXrGz5Xm51RlaG7DaSYRmq9DXDRAw+BoFC uYZt661J2QfJNF1R4QdfKUP/qm9J/7l9twkI/A69ZmW0KpyRyWT+PyaxaYE469HccuWZ ClAABO4Qoko2ycAwT4Ja+9kJfCUKZg0S1wEaApzzgI+j0mObPscxJ/8wdGF2ssLGFZ10 VrXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MwrpA+guKS/q3KaHmCj9HLh+rvkc2GO94EZnm3d5qVo=; b=KWEpJwNC3MZYaZBUJIW9eLHOd0aKXgVyojVOrhu6IKEx7Yjpk+mYCjmVKfgyBucwOB F4b7J4gkqFuNOAzCf2zaUYIa4bqW56isOoT5EVss2Ked2Kx4z73iEdfiExslthui4Jjc IMtm5YBqFZTJIVyTyI63lnAFNXdZRISm8nqlTK6EbIJkH2YtTbpZr0wAjAzwH+IdakdA m//nNzNRaEQV1eNYvHhpdpd4+4qN1/DSeQMqRc+BD3ITSYcLRcF+YgK/GYVc0F8ZbbcY rYv7sqfujR54riA+QtC58fWi38pw2BWRJ06n+SoB7mQw7j026TlWJuj9GacTu3BVysye UpHA== X-Gm-Message-State: AOAM530Q8cZMxmlVxE1jTzNNtl78o+A1o6Z78aTP0y9SnXR2iH+FGsdb OVmdjgOZJXv8Vg6M2pcj8UqW8lVjfAU= X-Google-Smtp-Source: ABdhPJycpdJ6Urwhn1n3TK2xaMVz4oxTXtGEAEdfTFsf254eMG1t99vM+V3OWhNqN+O0W8XWw50l2g== X-Received: by 2002:a5d:408e:: with SMTP id o14mr100000wrp.84.1591741853254; Tue, 09 Jun 2020 15:30:53 -0700 (PDT) Received: from localhost (host86-128-12-16.range86-128.btcentralplus.com. [86.128.12.16]) by smtp.gmail.com with ESMTPSA id t14sm5326293wrb.94.2020.06.09.15.30.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 15:30:52 -0700 (PDT) Date: Tue, 9 Jun 2020 23:30:51 +0100 From: Andrew Burgess To: Tom Tromey Cc: Nelson Chu , gdb-patches@sourceware.org Subject: Re: [RFC] gdb/riscv: Improved register alias name creation Message-ID: <20200609223051.GF2737@embecosm.com> References: <1584007257-14466-1-git-send-email-nelson.chu@sifive.com> <87r1upefg8.fsf@tromey.com> <20200609173040.GE2737@embecosm.com> <87pna855a8.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pna855a8.fsf@tromey.com> X-Operating-System: Linux/5.6.15-200.fc31.x86_64 (x86_64) X-Uptime: 23:26:56 up 1 day, 12:33, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_CSS, URIBL_CSS_A autolearn=no autolearn_force=no version=3.4.2 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: Tue, 09 Jun 2020 22:30:59 -0000 * Tom Tromey [2020-06-09 14:54:23 -0600]: > >>>>> "Andrew" == Andrew Burgess writes: > > Andrew> The patch below has had only minimal testing so far, but I'm sharing > Andrew> it here so it can be discussed while I also get it tested. > > Andrew> This changes how the 'csr%d' aliases are created, and adds the > Andrew> dscratch to dscratch0 alias. > > I backed out the reversion here; then I did a new merge; then I applied > this patch and re-ran our internal test suite. > > It still fails -- though it does change the failures I see. Now it > complains about a different register: > > (gdb) call debug.trace (me, "You") > Could not fetch register "mucounteren"; remote failure reply 'E14' That is so weird! Based on the dump you included in the other email I would have expected that to work. Please would it be possible for you to gather two logs using "set remotefilelog ..." as before. For each log I'd like to see: 1. Connect to the target, 2. Print $dscratch, 3. print $mucounteren Could you do this with current whatever GDB you were using above, and then again with whatever patches you need to back out in order to get it working again. Thanks, Andrew