]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Add LoongArch case in my-syscalls.S
authorZewei Yang <yangzewei@loongson.cn>
Thu, 23 Oct 2025 01:45:49 +0000 (09:45 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 30 Oct 2025 14:07:49 +0000 (22:07 +0800)
commitf06e09588da76e0f3f017a59daf26bf30c5e525f
treedc40b5c7f9053d50fa61a06b2f21414da21be978
parentaa4fbe8859561862cd27cb9eac871082e94ac47b
gdb/testsuite: Add LoongArch case in my-syscalls.S

When running the following command on LoongArch:

  git clone git://sourceware.org/git/binutils-gdb.git gdb
  mkdir -p build && cd build && ../gdb/configure && make -j"$(nproc)"
  make check-gdb TESTS="gdb.threads/step-over-thread-exit-while-stop-all-threads.exp"

there exists the following error:

  gdb/gdb/testsuite/lib/my-syscalls.S:67:3: error: #error "Unsupported architecture"

this is because there is no SYSCALL macro for LoongArch, just add it.
With this patch, the above test passes on LoongArch.

Signed-off-by: Zewei Yang <yangzewei@loongson.cn>
Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/testsuite/lib/my-syscalls.S