1 # Copyright 2018-2019 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 # The purpose of this test is to verify that GDB is able to handle
17 # the "-list-thread-groups --available" command, even when there is
18 # no inferior. In particular, we want to verify that GDB does not
21 load_lib mi-support.exp
29 # Try the "-list-thread-groups --available". This command can generate
30 # a very large amount of output, potentially exceeding expect's buffer
31 # size. So we consume the output in chunks.
33 set test "-list-thread-groups --available"
34 gdb_test_multiple $test $test {
38 -re "\r\n$gdb_prompt " {
43 # Verify that GDB is still alive.
45 mi_gdb_test "-data-evaluate-expression 1" \
46 ".*\\^done,value=\"1\"" \