public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jim Wilson <jimw@sifive.com>
To: hilihui@sina.com
Cc: Simon Marchi <simark@simark.ca>, gdb <gdb@sourceware.org>
Subject: Re: Re: I compile gdbserver for RISCV on gdb10.1 version, and there is a error
Date: Mon, 16 Nov 2020 13:55:18 -0800	[thread overview]
Message-ID: <CAFyWVaY57+ML9fMEi+7vQ-W_B+FVVPy=qYqpwWevUw8OAndkNg@mail.gmail.com> (raw)
In-Reply-To: <20201116133833.1659C5D000A6@webmail.sinamail.sina.com.cn>

On Mon, Nov 16, 2020 at 5:38 AM <hilihui@sina.com> 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

       reply	other threads:[~2020-11-16 21:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20201116133833.1659C5D000A6@webmail.sinamail.sina.com.cn>
2020-11-16 21:55 ` Jim Wilson [this message]
2020-11-20 15:47   ` Rodney M. Bates
2020-11-20 20:37     ` Jim Wilson
2020-11-21 17:03       ` Rodney M. Bates

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyWVaY57+ML9fMEi+7vQ-W_B+FVVPy=qYqpwWevUw8OAndkNg@mail.gmail.com' \
    --to=jimw@sifive.com \
    --cc=gdb@sourceware.org \
    --cc=hilihui@sina.com \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).