Re: gdb support for SME-without-SVE ?

Thiago Jung Bauermann via Gdb <[email protected]> Fri, 30 Jan 2026 16:16:19 +0000
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Peter Maydell <[email protected]> writes:

> But now after restarting the VM and running this command again,
> it does nothing:
>
> root@debian:~/gdb-build# make check-gdb TESTS=gdb.arch/aarch64-sme-sanity.exp
> make[1]: Entering directory '/root/gdb-build/gdb'
> make[2]: Entering directory '/root/gdb-build/gdb/testsuite'
> make check-single
> make[3]: Entering directory '/root/gdb-build/gdb/testsuite'
> rm -f *core* gdb.sum gdb.log
> rootme=`pwd`; export rootme;
> srcdir=../../../binutils-gdb/gdb/testsuite ; export srcdir ;
> EXPECT=`if [ "${READ1}" != "" ] ; then echo ${rootme}/expect-read1;
> elif [ "${READMORE}" != "" ] ; then echo ${rootme}/expect-readmore;
> elif [ -f ${rootme}/../../expect/expect ] ; then echo
> ${rootme}/../../expect/expect ; else echo expect ; fi` ; export EXPECT
> ; EXEEXT= ; export EXEEXT ;
> LD_LIBRARY_PATH=$rootme/../../expect:$rootme/../../libstdc++:$rootme/../../tk/unix:$rootme/../../tcl/unix:$rootme/../../bfd:$rootme/../../opcodes:$LD_LIBRARY_PATH;
> export LD_LIBRARY_PATH; if [ -f ${rootme}/../../expect/expect ] ; then
> TCL_LIBRARY=${srcdir}/../../tcl/library ; export TCL_LIBRARY ; fi ;
> runtest --status  gdb.arch/aarch64-sme-sanity.exp ; \
> result=$?; \
> if test -e gdb.sum; then \
>   /bin/bash ../../../binutils-gdb/gdb/testsuite/lib/dg-add-core-file-count.sh; \
>   sed -n '/=== gdb Summary ===/,$ p' gdb.sum; \
> fi; \
> exit $result
> WARNING: No tool specified
> Test run by root on Fri Jan 30 12:25:14 2026
> Native configuration is aarch64-unknown-linux-gnu
>
>                 ===  tests ===
>
> Schedule of variations:
>     unix
>
> Running target unix
> Using /usr/share/dejagnu/baseboards/unix.exp as board description file
> for target.
> Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
> WARNING: Couldn't find tool config file for unix, using default.

Hm, weird. I don't know about this problem. Sounds like some generated
Dejagnu config file is missing. Maybe try running just "make" before
"make check-gdb" to see if the file is generated again?

>                 ===  Summary ===
>
> make[3]: Leaving directory '/root/gdb-build/gdb/testsuite'
> make[2]: Leaving directory '/root/gdb-build/gdb/testsuite'
> make[1]: Leaving directory '/root/gdb-build/gdb'
> root@debian:~/gdb-build#
>
> As far as I can see the test harness is running no tests any more
> (and so the kernel oops doesn't show up).
>
> Is there some way I can get it to tell me why it isn't running anything?

The gdb.log file sometimes has more information than what appears on the
console.

-- 
Thiago