]>
Commit | Line | Data |
---|---|---|
51a5ef0f PS |
1 | --- a/gdb/testsuite/gdb.base/macscp.exp |
2 | +++ b/gdb/testsuite/gdb.base/macscp.exp | |
3 | @@ -33,6 +33,14 @@ if [test_compiler_info gcc*] { | |
4 | lappend options additional_flags=-g3 | |
5 | } | |
6 | ||
7 | +# Workaround ccache making lineno non-zero for command-line definitions. | |
8 | +if {[find_gcc] == "gcc" && [file executable "/usr/bin/gcc"]} { | |
9 | + set result [catch "exec which gcc" output] | |
f412e1b4 PS |
10 | + if {$result == 0 && [string first "/ccache/" $output] > -1} { |
11 | + lappend options "compiler=/usr/bin/gcc" | |
51a5ef0f PS |
12 | + } |
13 | +} | |
14 | + | |
15 | # Generate the intermediate object file. This is required by Darwin to | |
16 | # have access to the .debug_macinfo section. | |
17 | if {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${objfile}" \ |