1 # Copyright
(C
) 2018-2023 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
/>.
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.
21 set testfile info_minsym
23 standard_testfile info_minsym.c
25 #
Compile the
program without debugging information
, to have minimal symbols.
26 if {[prepare_for_testing
"failed to prepare" $testfile $srcfile {c}]} {
30 gdb_test_no_output
"info variables -q -t int minsym" \
31 "minsym variables do not match type"
32 gdb_test_no_output
"info functions -q -t int minsym" \
33 "minsym functions do not match type"
35 gdb_test
"info variables -q minsym" "$hex minsym_var" "minsym variables found"
36 gdb_test
"info functions -q minsym" "$hex minsym_fun" "minsym functions found"