From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4DzwJFf1sl/LbQAAWB0awg (envelope-from ) for ; Mon, 16 Nov 2020 16:55:35 -0500 Received: by simark.ca (Postfix, from userid 112) id 9578D1E58F; Mon, 16 Nov 2020 16:55:35 -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.4 required=5.0 tests=DKIM_SIGNED,MAILING_LIST_MULTI, RDNS_NONE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [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 EB82F1E58F for ; Mon, 16 Nov 2020 16:55:34 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 487E83857801; Mon, 16 Nov 2020 21:55:34 +0000 (GMT) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id A00A33857801 for ; Mon, 16 Nov 2020 21:55:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A00A33857801 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-ej1-x62a.google.com with SMTP id cw8so26557099ejb.8 for ; Mon, 16 Nov 2020 13:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EzvCSuUaw6BpVv3LzNT7Zo/j3xo6nnU64a8HAL2vwqs=; b=T11C3xIJ1mR94mYHnRb8TpgjBrKEnP9Vg/+9XoSFWCjyChyu31UKCjvYyF2k7amG/g s5P14AtRD+9UxfdxC1jYGaiqnm7Q4QjrU+OL97x/9K4GtrKtsfb9wyE0nOTGjgh+6S4q vviYFjQ2mJ6Z6CBKjFOLb/T/t1rTItcE6D2UDpwAKxJ0D5wWk8THE8YVZQAVqRDUhAV4 gX5XxLiQyp/WfuX8EsR2dVoyOFwn8NDiSkgHi75zXosgfSUVXLPlmyuaRkIz0LDPueQ0 k6svB8EkgJO1Cp5m8F+gWCS9ShTmEINd7TX9xSAxzvWXhWVgw37ozBg4rBU5DQ7lmGnl RQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EzvCSuUaw6BpVv3LzNT7Zo/j3xo6nnU64a8HAL2vwqs=; b=PRiTh/coawZha/gxFzCvfdgCC4dsUmGaRhM9T6/ynm0Pa2549AB4kdkb63qFfPSPTK eoL9e88Qoyad3TyOLAzFWO1KyUgAmQY0lkgSwhhl06XfMSbPV+Nsqf0JNwV5CqNUPrIc H592SdH6xJqK3cVv1qMFmuPuCR07dPD1HXXUWA/Ytc0I6fZI9WD1ksacJTAq9xBA0wss d2+bFW9uiXpn+VDtIYArX+F937s48oJ0MFcaH+etcMTn9COVpGlzybBx3bsR4YcWUlJN v+INSDKCppqmfiXE1sz167sTzbpPYVVWxn5ixLS+HOwSkbeF2szZdO+5bT59rN6vc1W/ KeZw== X-Gm-Message-State: AOAM530cgHEvzs3Z/2z751oVjAnr4JghFTY1XtFHjd2tHklxrNyYQj+j rDsZbmAM+FEmYN649Lt4yPZSUBvb3qRy9IBBBupwoA== X-Google-Smtp-Source: ABdhPJwq36IAPv80/V6IN4KsxeWShwYxbqKTxZG0lTGFptBxuwVtgFHJy8sNLvn/4rLIQLsirvb46XORLBtc+wl4mIs= X-Received: by 2002:a17:906:c20f:: with SMTP id d15mr16338583ejz.341.1605563729853; Mon, 16 Nov 2020 13:55:29 -0800 (PST) MIME-Version: 1.0 References: <20201116133833.1659C5D000A6@webmail.sinamail.sina.com.cn> In-Reply-To: <20201116133833.1659C5D000A6@webmail.sinamail.sina.com.cn> From: Jim Wilson Date: Mon, 16 Nov 2020 13:55:18 -0800 Message-ID: Subject: Re: Re: I compile gdbserver for RISCV on gdb10.1 version, and there is a error To: hilihui@sina.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Marchi , gdb Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" On Mon, Nov 16, 2020 at 5:38 AM wrote: > So do you mean that the gdb for RISCV on some project is not supported, > because these projects still use the old linux kernel system. > > Now i am working on "https://github.com/pulp-platform/ariane-sdk" > project, and the project still use the old linux kernel system, so the gdb > on the platform is not available. > If you have an old linux kernel, gdb will not work due to bugs in the linux kernel ptrace support. I submitted two patches to fix two problems in Fall 2018. Then there was a third patch to add support for FP registers but you only need that one if you want to look at FP registers. You definitely need the first two patches in the kernel. Jim