From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116260 invoked by alias); 31 Jan 2020 10:43:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 116246 invoked by uid 89); 31 Jan 2020 10:43:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=our X-HELO: esa6.hgst.iphmx.com Received: from esa6.hgst.iphmx.com (HELO esa6.hgst.iphmx.com) (216.71.154.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Jan 2020 10:43:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1580467403; x=1612003403; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=SqKJIMTghgyRcptDm/XtSNX+ZbRarkOJ+Q5T+/DJ9ec=; b=NG6FhjHduNf39lXej/Mirf8NG8yJN+w8zx9tYoObf5wwOVce1Ze/qH+S t5CNvhxpzMc/1MgsHUWW1hIUrGVVPy3fLlgLcodVcZs3QauDCcLzG4Q4x fmezAASvgmiFpZdU2l/I+JE1I3voSwpwF70RV6ITCxbPQl/a4obn8qWv2 8KfZcQ8p7cTiM90rSfY8lrxgurP63agcIurONMOFupzgq1WGmRJHkrEWM ohYOg2tYB/3uEsdoAEl+wvW6tkkafIINaoh5rg2hpOpcy9Sgc0PGOY3Ib mSXycN/BPiQAz40jq77WQBC/v72bwaySAQNyQ6XArSI7/xvFEo+2dVizr g==; IronPort-SDR: kMwMf62BWqxihPfZYfyz94j+U71IDEQTITfXxEsCaFp9GePtvi1WCjqjyGXBU6Fdn9e0MB/Is6 SwKvYxPgYgMmfMlFvJ9J+GXsEQbeUUNVdr2ek4X0LRcAyTuaXiflziuyhTKGNmmRc3KdJc/uiD yQStWwCyWA4KGen9ALgi2O1JfjEwLYIGLQtlonFUnahTAworgoCog7ekwLZ5QblfDlhM6q6H4y t15sLWKMxrj5wDHBhlgknPhvrlbKktVn0VuFLhc2IlJkqQPJkQOJpXMnwPDGyK6DrUi/DWhLIF slE= Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 31 Jan 2020 18:43:22 +0800 IronPort-SDR: OyPInC/IlgvSJG+Bjv/RuqXTGNqcDuHeWhu1Nm9Q5O3d1F1bQgy9DnvbfmM+OmkSYBKimx1hWu eEa2OpGlW5csZ8QpXl84JWM8spmcOj5MgD/YfvXNLIa8J/jtBdriPHohvu2rAMNuDwPHdGc5dJ vnxk9RnmnYgDAZZN8fc3RI9yY7cTHUGhOFLzqN7JfAvfoVZ6KtFIZkDxV7pybwrDkKg9plZ2gE 7KKHIpoxZbZF6AP97OIo1+5sQ/k0cxxAx10Ymyy6PypxX0qKLAzd0XR/Uv0CbbNQ8I7QwmEf/3 on5AGE4dh7GxR4/HmlRTWpCg Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2020 02:36:31 -0800 IronPort-SDR: Z4E9Xrply45fcIzXEENqRIPpTmN6flmMt29pCAopK7TD5AqBX/fgN/UiSm3KK+Y9UbsSw6f7KR nLZs4nT+MUKghVjpbG9Us1RA/Q2W+VxBBx+/c2ffmeo3acKcGuIUK7C1t1H6i62IIo6ySAGRz6 +vS5b37NP+BKOTQnYze7Hm3VqD6nQVXvCQxLEKtyVs7MEAsxAOtDsIiFLqRsrOlVcYNEME9DUP PPQXrnM41x67VukpdmJ4pCYHotSaXHq6ZExrbc2++z/J+jEu8WqhaK2fGKRI/rv7VGuLEd+0Lg NtM= WDCIronportException: Internal Received: from unknown (HELO redsun52) ([10.149.66.28]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2020 02:43:19 -0800 Date: Fri, 31 Jan 2020 12:11:00 -0000 From: "Maciej W. Rozycki" To: Jim Wilson cc: "gdb-patches@sourceware.org" , Andrew Burgess , Palmer Dabbelt , Tom Tromey , "guoren@kernel.org" , "lifang_xia@c-sky.com" , "yunhai_shang@c-sky.com" , "jiangshuai_li@c-sky.com" Subject: Re: [PATCH v2 1/3] RISC-V/Linux/native: Determine FLEN dynamically In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2020-01/txt/msg00992.txt.bz2 On Thu, 30 Jan 2020, Jim Wilson wrote: > > We can do better however and not rely on any particular value of FLEN > > and probe for it dynamically, by observing that the PTRACE_GETREGSET > > ptrace(2) call will only accept an exact regset size, and that will > > reflect FLEN. > > I forgot to mention this before, but our long term plans are to pass > info via the auxiliary vector from the kernel to the application, and > then in theory gdb should be able to get architecture info from there. Thanks for the heads-up. This will undoubtedly be useful for something, but I think we have a solution for GDB/gdbserver already, so unless the circumstances change, I think we're fine without the need to peek at the auxv. I'll be posting v3, which has just passed testing, right away. It includes a few further improvements beyond what has been already discussed. Maciej