[gdb/testsuite] Add test-case for gdb-add-index.sh