1 # Copyright 2013-2020 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 # Fission doesn't support macros yet. Bug 15954.
25 unsupported "compiling on a remote host does not support a filename with directory."
29 set opts {debug additional_flags=-I.}
32 if [test_compiler_info gcc*] {
33 lappend opts additional_flags=-g3
36 if { [file pathtype $objdir] == "relative" } {
37 untested "objdir $objdir should be absolute"
41 cd $srcdir/${subdir}/base/two
42 set err [gdb_compile "../../${srcfile}" "${binfile}" executable $opts]
45 untested "compilation failed"
49 clean_restart ${testfile}
51 # Test macros respect DW_AT_comp_dir.
53 # "list header_two_func" does not set exactly the one line we want.
54 if ![runto header_two_func] {
58 gdb_test "info macro HEADER" "\r\n#define HEADER 2"