]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-ccache-workaround.patch
- updated (performance fixes).
[packages/gdb.git] / gdb-ccache-workaround.patch
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]
10 +    if {$result == 0 && [string first "/ccache/" $output] > -1} {
11 +       lappend options "compiler=/usr/bin/gcc"
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}" \
This page took 0.029293 seconds and 3 git commands to generate.