This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb/or1k: Add linux debugging support
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Stafford Horne <shorne at gmail dot com>
- Date: Thu, 6 Dec 2018 20:50:45 -0700
- Subject: Re: [PATCH] gdb/or1k: Add linux debugging support
- References: <20181202130736.10299-1-shorne@gmail.com>
On Sun, 2 Dec 2018 22:07:36 +0900
Stafford Horne <shorne@gmail.com> wrote:
> Up until now OpenRISC GDB only has supported bare metal debugging. This
> patch adds linux userspace debugging and core dump analysis support.
>
> The changes are loosely based on nios2 and riscv implementations.
>
> This was tested with linux 4.20 core dumps for executables linked
> against musl libc.
>
> bfd/ChangeLog:
>
> * elf32-or1k.c (or1k_grok_prstatus): New function.
> (or1k_grok_psinfo): Likewise.
I think that the bfd changes will need to be posted to the binutils
list and approved by one of the binutils maintainers. (I read through
it and it looked reasonable to me.)
> gdb/ChangeLog:
>
> * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
> * configure.tgt: Add or1k*-*-linux*.
> * or1k-linux-tdep.c: New file.
This part is okay. But don't push it until the bfd portion is also
approved.
Kevin