]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.6-buildid-locate-rpm-scl.patch
- guile has been fixed in 10.x
[packages/gdb.git] / gdb-6.6-buildid-locate-rpm-scl.patch
CommitLineData
4b0e5c1b
AM
1From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
2From: Fedora GDB patches <invalid@email.com>
3Date: Fri, 27 Oct 2017 21:07:50 +0200
4Subject: gdb-6.6-buildid-locate-rpm-scl.patch
5
4b0e5c1b
AM
6;; [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585).
7;;=push+jan
8
140f8057
JR
9warning: Skipping deprecated .gdb_index section
10https://bugzilla.redhat.com/show_bug.cgi?id=953585
11
174fe25c
JP
12diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
13--- a/gdb/dwarf2/read.c
14+++ b/gdb/dwarf2/read.c
0e7ddf04 15@@ -2797,6 +2797,16 @@ read_gdb_index_from_buffer (const char *filename,
140f8057
JR
16 "set use-deprecated-index-sections on". */
17 if (version < 6 && !deprecated_ok)
18 {
19+#ifdef GDB_INDEX_VERIFY_VENDOR
20+ extern int rpm_verify_vendor (const char *filename);
21+
22+ /* Red Hat Developer Toolset exception. */
23+ if (rpm_verify_vendor (filename))
24+ {}
25+ else
26+ {
27+
28+#endif
29 static int warning_printed = 0;
30 if (!warning_printed)
31 {
0e7ddf04 32@@ -2808,6 +2818,10 @@ to use the section anyway."),
140f8057
JR
33 warning_printed = 1;
34 }
35 return 0;
36+#ifdef GDB_INDEX_VERIFY_VENDOR
37+
38+ }
39+#endif
40 }
41 /* Version 7 indices generated by gold refer to the CU for a symbol instead
42 of the TU (for symbols coming from TUs),
This page took 0.223891 seconds and 4 git commands to generate.