1 # Copyright 2014 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/>.
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.
22 # bash$ make check RUNTESTFLAGS='--target_board=stabs'
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.
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.
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]"
39 # Use -gstabs+ instead of -gstabs for better c++ support.
40 set_board_info debug_flags "-gstabs+"
42 # This is needed otherwise dejagnu tries to rsh to host "stabs". Blech.
43 # Double blech: set_board_info only sets the value if not already set.
44 unset_board_info isremote
45 set_board_info isremote 0