92d162c371
Update gdb-6.3-rh-testversion-20041202.patch. Update gdb-6.3-bz140532-ppc-unwinding-test.patch. Update gdb-6.6-buildid-locate.patch. Update gdb-6.6-buildid-locate-rpm.patch. Remove 'Recommends: ' line for gcc-gdb-plugin for BZ2149246. Add 'define _lto_cflags ' to avoid ODR violations. Add -Wno-stringop-overflow to --enable-gdb-build-warnings to work around gcc problem.
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
Subject: gdb-ccache-workaround.patch
|
|
|
|
;; Workaround ccache making lineno non-zero for command-line definitions.
|
|
;;=fedoratest: ccache is rarely used and it is even fixed now.
|
|
|
|
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
|
|
--- a/gdb/testsuite/gdb.base/macscp.exp
|
|
+++ b/gdb/testsuite/gdb.base/macscp.exp
|
|
@@ -20,6 +20,14 @@ set objfile [standard_output_file ${testfile}.o]
|
|
|
|
set options {debug macros additional_flags=-DFROM_COMMANDLINE=ARG}
|
|
|
|
+# Workaround ccache making lineno non-zero for command-line definitions.
|
|
+if {[find_gcc] == "gcc" && [file executable "/usr/bin/gcc"]} {
|
|
+ set result [catch "exec which gcc" output]
|
|
+ if {$result == 0 && [string first "/ccache/" $output] > -1} {
|
|
+ lappend options "compiler=/usr/bin/gcc"
|
|
+ }
|
|
+}
|
|
+
|
|
# Generate the intermediate object file. This is required by Darwin to
|
|
# have access to the .debug_macinfo section.
|
|
if {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${objfile}" \
|