]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
This commit adds support for catching syscalls on riscv
authorTimur Golubovich <timurgol007@gmail.com>
Thu, 28 Aug 2025 17:12:55 +0000 (20:12 +0300)
committertimurgol007 <timurgol007@gmail.com>
Wed, 24 Sep 2025 11:56:38 +0000 (14:56 +0300)
commit52bb1ca383ee2765332aee3023650ccba895a8ac
tree3a8aa3a70e49293ab71a16cbd5278ff00a655ac8
parent3a3c3a0e7280ef8907d62ea83706a2ef3081831b
This commit adds support for catching syscalls on riscv

It affects following files:
- gdb/riscv-linux-tdep.c: a function to get syscall number.
- gdbserver/linux-riscv-low.cc: syscall trapinfo function to enable
catching syscalls on remote targets.
- gdb/syscalls/riscv-linux.xml.in: a file with syscalls, generated from
linux kernel sources using gdb/syscalls/update-linux-from-src.sh script.
- gdb/syscalls/riscv-linux.xml: a file with syscalls, patched with group
names gdb/syscalls/apply-defaults.xsl using xsltproc tool.
- gdb/syscalls/update-linux.sh: set startyear to 2025 on riscv.
- gdb/syscalls/update-linux-from-src.sh: riscv syscall table must be
generated from kernel headers.
- gdb/NEWS: catch-syscall feature is now available on riscv.
- gdb/data-directory/Makefile.in: adding file with syscalls to Makefile.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/NEWS
gdb/data-directory/Makefile.in
gdb/riscv-linux-tdep.c
gdb/syscalls/riscv-linux.xml [new file with mode: 0644]
gdb/syscalls/riscv-linux.xml.in [new file with mode: 0644]
gdb/syscalls/update-linux-from-src.sh
gdb/syscalls/update-linux.sh
gdbserver/linux-riscv-low.cc