Commit | Line | Data |
---|---|---|
b811d2c2 | 1 | # Copyright 2014-2020 Free Software Foundation, Inc. |
b6615d10 DE |
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 stabs support. Stabs is used less and less these days, ideally | |
18 | # it will eventually disappear (hey, one can dream). Until then, this | |
19 | # board file is a simple way to run the testsuite with stabs. | |
20 | # | |
21 | # Example usage: | |
22 | # bash$ make check RUNTESTFLAGS='--target_board=stabs' | |
23 | # | |
24 | # Another way: | |
25 | # make check RUNTESTFLAGS="--target_board=unix/gdb:debug_flags=-gstabs+" | |
26 | # While this way doesn't require a board file, this file exists because | |
27 | # it's easier for some to find. | |
28 | # | |
29 | # Note: make check RUNTESTFLAGS=CFLAGS_FOR_TARGET=-gstabs+ | |
30 | # "works" but kinda accidentally. The right way to set the flag for | |
31 | # specifying debug information is with the debug_flags board config parameter. | |
32 | ||
33 | # This is copied from baseboards/unix.exp. | |
34 | # At the moment this only supports things that unix.exp supports. | |
35 | load_generic_config "unix" | |
36 | process_multilib_options "" | |
37 | set_board_info compiler "[find_gcc]" | |
38 | ||
39 | # Use -gstabs+ instead of -gstabs for better c++ support. | |
40 | set_board_info debug_flags "-gstabs+" | |
41 | ||
f1af7b94 SM |
42 | # This is needed otherwise dejagnu tries to rsh to host "stabs". |
43 | load_board_description "local-board" |