binutils-gdb/gdb/arch
Jiangshuai Li 02cd1b4e97 gdbserver/csky add csky gdbserver support
Add new files:
  gdb/arch/csky.c
  gdb/arch/csky.h
  gdb/features/cskyv2-linux.c
  gdbserver/linux-csky-low.cc

1. In gdb/arch/csky.c file, add function "csky_create_target_description()"
for csky_target::low_arch_setup(). later, it can be used for csky native gdb.

2. In gdb/features/cskyv2-linux.c file, create target_tdesc for csky, include
gprs, pc, hi, lo, float, vector and float control registers.

3. In gdbserver/linux-csky-low.cc file, using PTRACE_GET/SET_RGESET to
get/set registers. The main data structures in asm/ptrace.h are:
struct pt_regs {
    unsigned long   tls;
    unsigned long   lr;
    unsigned long   pc;
    unsigned long   sr;
    unsigned long   usp;

    /*
     * a0, a1, a2, a3:
     * r0, r1, r2, r3
     */
    unsigned long   orig_a0;
    unsigned long   a0;
    unsigned long   a1;
    unsigned long   a2;
    unsigned long   a3;

    /*
     * r4 ~ r13
     */
    unsigned long   regs[10];

    /* r16 ~ r30 */
    unsigned long   exregs[15];

    unsigned long   rhi;
    unsigned long   rlo;
    unsigned long   dcsr;
};

struct user_fp {
    unsigned long   vr[96];
    unsigned long   fcr;
    unsigned long   fesr;
    unsigned long   fid;
    unsigned long   reserved;
};
2022-09-13 11:20:54 +08:00
..
aarch32.c Add an arm-tls feature which includes the tpidruro register from CP15. 2022-05-03 16:05:10 -07:00
aarch32.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-insn.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-insn.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-mte-linux.c [AArch64] MTE corefile support 2022-07-19 15:24:31 +01:00
aarch64-mte-linux.h [AArch64] MTE corefile support 2022-07-19 15:24:31 +01:00
aarch64.c Use aarch64_features to describe register features in target descriptions. 2022-05-18 13:32:04 -07:00
aarch64.h Tweak the std::hash<> specialization for aarch64_features. 2022-05-23 11:02:55 -07:00
amd64.c gdb: Consolidate 32bit-pkeys.xml and 64bit-pkeys.xml 2022-03-31 10:25:26 -07:00
amd64.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arc.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arc.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arm-get-next-pcs.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arm-get-next-pcs.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arm-linux.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arm-linux.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
arm.c Add an arm-tls feature which includes the tpidruro register from CP15. 2022-05-03 16:05:10 -07:00
arm.h gdb/arm: Only stack S16..S31 when FPU registers are secure 2022-06-29 14:03:26 +02:00
csky.c gdbserver/csky add csky gdbserver support 2022-09-13 11:20:54 +08:00
csky.h gdbserver/csky add csky gdbserver support 2022-09-13 11:20:54 +08:00
i386.c gdb: Consolidate 32bit-pkeys.xml and 64bit-pkeys.xml 2022-03-31 10:25:26 -07:00
i386.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
loongarch.c gdb: LoongArch: Add floating-point support 2022-07-12 20:14:48 +08:00
loongarch.h gdb/gdbserver: LoongArch: Improve implementation of fcc registers 2022-08-09 22:22:23 +08:00
ppc-linux-common.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ppc-linux-common.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ppc-linux-tdesc.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv.h gdb/riscv: better support for fflags and frm registers 2022-08-31 16:07:05 +01:00
tic6x.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
tic6x.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
xtensa.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00