]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: LoongArch: Set the correct XML syscall filename
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 29 Feb 2024 08:39:10 +0000 (16:39 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 20 Mar 2024 10:50:43 +0000 (18:50 +0800)
commit53ff349e553fa9fc446a8711e37fd252282b088b
tree3a642f766b20964deca69e60bd75217c373a0eac
parentb369b90c0d881d6fe5033269019e0f487e53a8eb
gdb: LoongArch: Set the correct XML syscall filename

Now, there exists syscalls/loongarch-linux.xml, let us set the correct
XML syscall filename for LoongArch, otherwise GDB won't be able to find
the correct XML file to open and get the syscalls definitions.

It should install the package expat-devel (a library for XML parsing)
and configure --with-expat (done by default if libexpat is installed
and found at configure time) for compiling gdb in this case.

Without this patch:

(gdb) catch syscall
warning: There is no XML file to open.
warning: GDB will not be able to display syscall names nor to verify if
any provided syscall numbers are valid.
Catchpoint 1 (any syscall)

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Approved-By: John Baldwin <jhb@FreeBSD.org>
gdb/data-directory/Makefile.in
gdb/loongarch-linux-tdep.c