Re: Re: I compile gdbserver for RISCV on gdb10.1 version, and there is a error
Jim Wilson <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAFyWVaY57+ML9fMEi+7vQ-W_B+FVVPy=qYqpwWevUw8OAndkNg@mail.gmail.com> |
On Mon, Nov 16, 2020 at 5:38 AM <[email protected]> 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