]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/boards/fission-dwp.exp
update copyright year range in GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / boards / fission-dwp.exp
1 # Copyright 2013-2017 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 # This file is a dejagnu "board file" and is used to run the testsuite
17 # with Fission support and generation of dwp files.
18 # http://gcc.gnu.org/wiki/DebugFission
19 # http://gcc.gnu.org/wiki/DebugFissionDWP
20 #
21 # Example usage:
22 # bash$ make check RUNTESTFLAGS='--target_board=fission-dwp'
23
24 load_board_description "fission"
25
26 set found_gcc [find_gcc]
27 set found_gxx [find_g++]
28
29 set contrib_dir [file normalize $srcdir/../contrib]
30 if ![info exists CC_FOR_TARGET] {
31 set CC_FOR_TARGET "$found_gcc"
32 }
33 set CC_FOR_TARGET "/bin/sh $contrib_dir/cc-with-tweaks.sh -p $CC_FOR_TARGET"
34 if ![info exists CXX_FOR_TARGET] {
35 set CXX_FOR_TARGET "$found_gxx"
36 }
37 set CXX_FOR_TARGET "/bin/sh $contrib_dir/cc-with-tweaks.sh -p $CXX_FOR_TARGET"
38
39 if ![info exists READELF_FOR_TARGET] {
40 set READELF_FOR_TARGET "[transform readelf]"
41 }
42 # cc-with-tweaks.sh uses READELF, not READELF_FOR_TARGET. Blech.
43 set env(READELF) "$READELF_FOR_TARGET"
44
45 if ![info exists DWP_FOR_TARGET] {
46 set DWP_FOR_TARGET "[transform dwp]"
47 }
48 # cc-with-tweaks.sh uses DWP, not DWP_FOR_TARGET. Blech.
49 set env(DWP) "$DWP_FOR_TARGET"