This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb/or1k: Add linux debugging support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]