diff options
author | Stafford Horne <shorne@gmail.com> | 2018-12-08 07:01:40 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2018-12-08 07:07:36 +0900 |
commit | 42e151bf4cc66b8781f2b139c6da320095f9a045 (patch) | |
tree | 3004954c0eb750ed1414e3751f882c9797b533ee /gdb/configure.tgt | |
parent | f50fabe4f66534c9addacddeaa439e8d164eadda (diff) | |
download | binutils-42e151bf4cc66b8781f2b139c6da320095f9a045.zip binutils-42e151bf4cc66b8781f2b139c6da320095f9a045.tar.gz binutils-42e151bf4cc66b8781f2b139c6da320095f9a045.tar.bz2 |
gdb/or1k: Add linux debugging support
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.
gdb/ChangeLog:
* Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
* configure.tgt: Add or1k*-*-linux*.
* or1k-linux-tdep.c: New file.
* or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
Diffstat (limited to 'gdb/configure.tgt')
-rw-r--r-- | gdb/configure.tgt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 9b646fa..27f122a 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -471,6 +471,14 @@ nios2*-*-*) gdb_target_obs="nios2-tdep.o" ;; +or1k*-*-linux*) + # Target: OpenCores OpenRISC 1000 32-bit running Linux + gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \ + symfile-mem.o glibc-tdep.o linux-tdep.o" + gdb_sim=../sim/or1k/libsim.a + build_gdbserver=yes + ;; + or1k-*-* | or1knd-*-*) # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal gdb_target_obs="or1k-tdep.o" |