2017-12-10 22:00:49 +00:00
|
|
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-6.6-buildid-locate-rpm-scl.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585).
|
|
|
|
;;=push+jan
|
|
|
|
|
2013-04-22 14:23:49 +00:00
|
|
|
warning: Skipping deprecated .gdb_index section
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=953585
|
|
|
|
|
2020-11-05 21:17:24 +00:00
|
|
|
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
|
|
|
|
--- a/gdb/dwarf2/read.c
|
|
|
|
+++ b/gdb/dwarf2/read.c
|
2022-05-13 17:30:05 +00:00
|
|
|
@@ -2797,6 +2797,16 @@ read_gdb_index_from_buffer (const char *filename,
|
2016-01-09 13:46:42 +00:00
|
|
|
"set use-deprecated-index-sections on". */
|
|
|
|
if (version < 6 && !deprecated_ok)
|
|
|
|
{
|
|
|
|
+#ifdef GDB_INDEX_VERIFY_VENDOR
|
|
|
|
+ extern int rpm_verify_vendor (const char *filename);
|
|
|
|
+
|
|
|
|
+ /* Red Hat Developer Toolset exception. */
|
|
|
|
+ if (rpm_verify_vendor (filename))
|
|
|
|
+ {}
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
static int warning_printed = 0;
|
|
|
|
if (!warning_printed)
|
|
|
|
{
|
2022-05-13 17:30:05 +00:00
|
|
|
@@ -2808,6 +2818,10 @@ to use the section anyway."),
|
2016-01-09 13:46:42 +00:00
|
|
|
warning_printed = 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
+#ifdef GDB_INDEX_VERIFY_VENDOR
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
/* Version 7 indices generated by gold refer to the CU for a symbol instead
|
|
|
|
of the TU (for symbols coming from TUs),
|