]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: LoongArch: Add instruction definition for process record
authorHui Li <lihui@loongson.cn>
Mon, 25 Nov 2024 07:31:34 +0000 (15:31 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 25 Nov 2024 11:13:08 +0000 (19:13 +0800)
commit19b5accc3f85734e381d381d38f028c3379fa3a3
treeb42b05fd479683dcd7a5cd37687a689272fa31b3
parent66df4f72b64b18b089b5a1a715230885ce0aaf14
gdb: LoongArch: Add instruction definition for process record

GDB provides a special process record function that can record a log
of the process execution. The core of this feature is need to record
the execution of all instructions. This patch adds opcode definitions
and judgments in gdb/arch/loongarch-insn.h. This is preparation for
later patch on LoongArch, there is no effect for the other archs with
this patch.

The LoongArch opcode and mask definitions are obtained from
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=opcodes/loongarch-opc.c
LoongArch instruction description refer to the LoongArch Reference Manual:
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html

Signed-off-by: Hui Li <lihui@loongson.cn>
Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
Approved-By: Tom Tromey <tom@tromey.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/arch/loongarch-insn.h [new file with mode: 0644]