[PATCH] gdb/or1k: Add linux debugging support

Kevin Buettner kevinb@redhat.com
Fri Dec 7 03:50:00 GMT 2018


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



More information about the Gdb-patches mailing list