From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +b46A9gbzl8OQgAAWB0awg (envelope-from ) for ; Mon, 07 Dec 2020 07:11:04 -0500 Received: by simark.ca (Postfix, from userid 112) id 0036E1F096; Mon, 7 Dec 2020 07:11:03 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,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 D95D61EFBB for ; Mon, 7 Dec 2020 07:11:02 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4548F385783D; Mon, 7 Dec 2020 12:11:02 +0000 (GMT) Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by sourceware.org (Postfix) with ESMTPS id 13274385783D for ; Mon, 7 Dec 2020 12:10:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 13274385783D 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-x343.google.com with SMTP id g185so13441069wmf.3 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=ZwMnuyxdZZCpCzCoraB/jlxFZKOkJnDTJXYpq2uAABZIEn1/A1S2MTm8v+fgd5xBnW 0RVA+y5FQAdK29VchIMIPitC3sNvOJTkan8VFtDqtd6POFexfDvsSNXu8P7Q1Ugop2Qv uFC7Yi7ZrLYl/Q+ziMVk1S/XiAYbYYjw672JAwcF8SEfRpCPK7Gd9CHBRYw8fD2Cnfeg R1lPNccWHi6/kPwoYs71CJCS5HWO1U96YpTHNeBjP1Nnu+Ia64ZGf39VGJG3qxOUamkw zXbskMP0/KIvSJf3NGckbtv4JLIXJoorEax0k9wnE+tcy/krrCkjc0brHMaOk0wyV+LK rr7A== X-Gm-Message-State: AOAM531WbaGsyNE7cjkP4yZ7yfH09r6QWjhrsggvBQCcEVjSeduCH3aT Z/oenY67DEwxmBhxEBhQU3EmnZzw4c6muw== 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 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-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: , Cc: Binutils , gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" * 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