]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/info_minsym.exp
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / info_minsym.exp
1 # Copyright (C) 2018-2021 Free Software Foundation, Inc.
2 #
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.
7 #
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.
12 #
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/>.
15
16
17 # Verify 'info variables|functions'
18 # shows minimal symbols when no type matching is requested
19 # does not show minimal symbols when type matching is requested.
20
21 set testfile info_minsym
22
23 standard_testfile info_minsym.c
24
25 # Compile the program without debugging information, to have minimal symbols.
26 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c}]} {
27 return -1
28 }
29
30 clean_restart ${testfile}
31
32 gdb_test_no_output "info variables -q -t int minsym" \
33 "minsym variables do not match type"
34 gdb_test_no_output "info functions -q -t int minsym" \
35 "minsym functions do not match type"
36
37 gdb_test "info variables -q minsym" "$hex minsym_var" "minsym variables found"
38 gdb_test "info functions -q minsym" "$hex minsym_fun" "minsym functions found"