From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by sourceware.org (Postfix) with ESMTPS id 139C6389681E for ; Mon, 7 Dec 2020 12:10:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 139C6389681E 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-wm1-x341.google.com with SMTP id h21so13459697wmb.2 for ; Mon, 07 Dec 2020 04:10:59 -0800 (PST) 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=JS6JpW5fuWSINn64CnBEy7FgAVB7tyuDSwC02xCOsOo=; b=Z6smI83JTl6MAZDLzbHU5/ikTFKRPpGjitX1p/5wQWg0PTRfYjm2nRqPcQNXckegXs wuF/FSJLUiHLeliZEgz5YipYqaYSEZHOFBPIKZQU8lrnd2vZSzsccoNWpXBnHJ4yIhRi 2bh4VKLZXQDRmFOoJKeMKDdnbp3rDT6/snnogJZggT5cciad5zOUA2U7439Xaicn3bt6 lQY8l5nlyPu627FliBEpyw/ytWxZNLQJi8MXQY0L1fgLor5UsJD9DjUpf97wXva5bRKX dS556bh0E3U303ChlcTwN2q7J4BQ8GYjU7ptvlT9san9c8rbdFRUiLEPNxq3X5HM29Tl GYig== 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=JS6JpW5fuWSINn64CnBEy7FgAVB7tyuDSwC02xCOsOo=; b=qY+LpKWNGuQLDUsy/v5isfyX3gQY50J+8WRN2f2veb8nKCa6/LmR3of858nqZ9Tota e15VbW4SLELjM9xScNr1pOzf3DsJ5IhpM6IVfhbtcrjdCzH14F8CxITr9fGcPmakfYn0 bLheIR/Wa8TzHEvQFxL+hFKCiL6GjsTBxKaAGnpUh7l7+hkv1gYR/5OhQGl/aqQEAH2E bNB0TVonkyMsV47SceFc88im/In1ivVRsO6QdKL/UwAjMm7HbSgLA0Gxn/ggfzi1U03n Pdknq6wx979Foe7ZGULhFPYHymmdpOhH0R4rNEYax2k1g39kp8YCeZfGFHDH4UjF6HGE 9EtA== X-Gm-Message-State: AOAM533JBGgQOXUzGuYbEMD2TSP+dnLiACOF4dR/1d5BiwIk7JmwlAJd kVeomHH8ktbc7cRJMyvzTPsSdw== X-Google-Smtp-Source: ABdhPJxy+4YG5KLCtMBl/g72kYLzGXVhi2iCP0/Oa+GlYQyI4agXXC4Cq9JhdjC9x/pcq2RU/aHpOg== X-Received: by 2002:a1c:7c19:: with SMTP id x25mr17956294wmc.94.1607343058192; Mon, 07 Dec 2020 04:10:58 -0800 (PST) Received: from localhost (host109-154-20-215.range109-154.btcentralplus.com. [109.154.20.215]) by smtp.gmail.com with ESMTPSA id w3sm13979393wma.3.2020.12.07.04.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 04:10:57 -0800 (PST) Date: Mon, 7 Dec 2020 12:10:56 +0000 From: Andrew Burgess To: Jim Wilson Cc: Binutils , gdb-patches@sourceware.org, Nelson Chu , John Baldwin Subject: Re: [PATCH 0/8] Bare-metal core dumps for RISC-V Message-ID: <20201207121056.GE2729@embecosm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux/5.8.13-100.fc31.x86_64 (x86_64) X-Uptime: 12:07:13 up 43 days, 3:10, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2020 12:11:01 -0000 * Jim Wilson [2020-12-02 15:59:36 -0800]: > On Wed, Dec 2, 2020 at 9:39 AM Andrew Burgess > wrote: > > > This series touches both binutils and gdb. Patches #2, #4, and #6 are > > binutils patches, all the rest are gdb patches. > > > > The goal of this series is to add support to GDB for generating a core > > file for a bare metal RISC-V target. > > > > As part of this series patches #2 and #3 add a generic new feature to > > GDB, the ability to include the current target description in a > > generated core file. > > > > Just as a general comment, the RISC-V psabi currently only specifies the > dwarf2 register numbers, which the compiler obviously needs. Otherwise, it > doesn't try to document anything gdb related, as it has been mainly > assembler/linker/compiler folk contributing to it. At some point we might > need some gdb related documentation. Some of the changes here potentially > affect llvm/lldb and the FreeBSD folks, and they may not be reading GNU > mailing lists. Thanks for your feedback. I agree that it would be a good idea to document this layout somewhere. Am I correct in thinking that here: https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md Is where such things should be documented? I guess it's probably worth getting the documentation approved before merging to GDB in case changes are suggested. Thanks, Andrew