Hi, I'd like to cleanup some files/directories which remain after the gdb testsute runs. I want to avoid using "rm -rf ..." since that can be dangerous. Therefore I remove the *.gdb-index files, if any, and use rmdir instead. I am not sure if there is a better way, instead of using "remote_exec host sh -c" to do the globbing. Tested on x86_64-pc-linux-gnu. Is it OK for trunk? gdb/testsuite: 2021-05-14 Bernd Edlinger * gdb.base/index-cache.exp: Cleanup $cache_dir/*.gdb-index and remove the directory. * gdb.dwarf2/per-bfd-sharing.exp: Likewise.