[gdb/testsuite] Fix Wreturn-mismatch in gdb.base/list-dot-nodebug.exp