diff options
author | Stafford Horne <shorne@gmail.com> | 2020-08-16 06:04:05 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2021-10-29 05:22:12 +0900 |
commit | 4933265c3f71b9134363d0c05f09542d5cc677f4 (patch) | |
tree | b291e70e95620bba525afe2b607a6975772dc9cc /gdb | |
parent | cf365c10d0786a4fd2423d451596b879ee44627a (diff) | |
download | gdb-4933265c3f71b9134363d0c05f09542d5cc677f4.zip gdb-4933265c3f71b9134363d0c05f09542d5cc677f4.tar.gz gdb-4933265c3f71b9134363d0c05f09542d5cc677f4.tar.bz2 |
gdb: or1k: implement gdb server
This patch adds gdbserver support for OpenRISC. This has been used for
debugging the glibc port that in being worked on here:
https://github.com/openrisc/or1k-glibc/tree/or1k-port-2
Hence the comment about registers definitions being inline with glibc.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/features/Makefile | 1 | ||||
-rw-r--r-- | gdb/features/or1k-linux.xml | 13 | ||||
-rw-r--r-- | gdb/regformats/or1k-linux.dat | 40 |
3 files changed, 54 insertions, 0 deletions
diff --git a/gdb/features/Makefile b/gdb/features/Makefile index e478bf8..311176a 100644 --- a/gdb/features/Makefile +++ b/gdb/features/Makefile @@ -47,6 +47,7 @@ WHICH = mips-linux mips-dsp-linux \ mips64-linux mips64-dsp-linux \ nios2-linux \ + or1k-linux \ rs6000/powerpc-32 \ rs6000/powerpc-32l rs6000/powerpc-altivec32l rs6000/powerpc-e500l \ rs6000/powerpc-64l rs6000/powerpc-altivec64l rs6000/powerpc-vsx32l \ diff --git a/gdb/features/or1k-linux.xml b/gdb/features/or1k-linux.xml new file mode 100644 index 0000000..598538d --- /dev/null +++ b/gdb/features/or1k-linux.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2021 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>or1k</architecture> + <osabi>GNU/Linux</osabi> + <xi:include href="or1k-core.xml"/> +</target> diff --git a/gdb/regformats/or1k-linux.dat b/gdb/regformats/or1k-linux.dat new file mode 100644 index 0000000..7b64646 --- /dev/null +++ b/gdb/regformats/or1k-linux.dat @@ -0,0 +1,40 @@ +# THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi :set ro: +# Generated from: or1k-linux.xml +name:or1k_linux +xmltarget:or1k-linux.xml +expedite:r1,npc +32:r0 +32:r1 +32:r2 +32:r3 +32:r4 +32:r5 +32:r6 +32:r7 +32:r8 +32:r9 +32:r10 +32:r11 +32:r12 +32:r13 +32:r14 +32:r15 +32:r16 +32:r17 +32:r18 +32:r19 +32:r20 +32:r21 +32:r22 +32:r23 +32:r24 +32:r25 +32:r26 +32:r27 +32:r28 +32:r29 +32:r30 +32:r31 +32:ppc +32:npc +32:sr |