1# Copyright 2014-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 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. 35load_generic_config "unix" 36process_multilib_options "" 37set_board_info compiler "[find_gcc]" 38 39# Use -gstabs+ instead of -gstabs for better c++ support. 40set_board_info debug_flags "-gstabs+" 41 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. 44unset_board_info isremote 45set_board_info isremote 0 46