diff options
author | Hui Li <lihui@loongson.cn> | 2024-11-25 15:46:00 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2024-11-25 19:15:51 +0800 |
commit | 33afccfaa8b154433015fe52aa76e3d1d9e9e856 (patch) | |
tree | b531ea891bcddf0ed947704c611e12259f8ed47f /gdb/python | |
parent | 886ebc2b1f226d1ca06a3f0192cd1663c46428b0 (diff) | |
download | binutils-33afccfaa8b154433015fe52aa76e3d1d9e9e856.zip binutils-33afccfaa8b154433015fe52aa76e3d1d9e9e856.tar.gz binutils-33afccfaa8b154433015fe52aa76e3d1d9e9e856.tar.bz2 |
gdb: LoongArch: Add system call support for process record/replay
The process record and replay function also need record Linux
system call instruction. This patch adds LoongArch system call
number definitions in gdb/arch/loongarch-syscall.h, and adds
loongarch_linux_syscall_record() in gdb/loongarch-linux-tdep.c
to record system call execute log. With this patch, the main
functions of process record/replay and reverse debugging are
implemented.
The LoongArch system call numbers definitions are obtained from Linux kernel.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/loongarch/include/asm/unistd.h
Signed-off-by: Hui Li <lihui@loongson.cn>
Approved-By: Guinevere Larsen <guinevere@redhat.com> (record-full)
Approved-By: Tom Tromey <tom@tromey.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions