1 # Copyright
2016-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
/>.
18 if { [build_executable $
{testfile
}.exp $
{testfile
} $
{srcfile
}] == -1 } {
21 if ![remote_file host
exists [standard_output_file $
{testfile
}.dwp
]] {
22 unsupported
"testsuite run does not produce dwp files"
26 # Note
: the procedure gdb_gnu_strip_debug will produce an executable called
27 # $
{binfile
}, which is just like the executable
($binfile
) but without
28 # the debuginfo. Instead $binfile has a .gnu_debuglink section which contains
29 # the
name of a debuginfo only file. This file will be stored in the
30 # gdb.base
/ subdirectory.
32 if [gdb_gnu_strip_debug $binfile$EXEEXT
] {
33 # check that you have a recent version of
strip and objcopy installed
34 unsupported
"cannot produce separate debug info files"
38 clean_restart
"$testfile"
40 gdb_test
"ptype main" {type = int \(int, char \*\*\)}