]> git.pld-linux.org Git - packages/gdb.git/blob - 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
1 From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
2 From: Fedora GDB patches <invalid@email.com>
3 Date: Fri, 27 Oct 2017 21:07:50 +0200
4 Subject: gdb-6.6-buildid-locate-rpm-scl.patch
5
6 ;; [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585).
7 ;;=push+jan
8
9 warning: Skipping deprecated .gdb_index section
10 https://bugzilla.redhat.com/show_bug.cgi?id=953585
11
12 diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
13 --- a/gdb/dwarf2/read.c
14 +++ b/gdb/dwarf2/read.c
15 @@ -2797,6 +2797,16 @@ read_gdb_index_from_buffer (const char *filename,
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         {
32 @@ -2808,6 +2818,10 @@ to use the section anyway."),
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.022819 seconds and 3 git commands to generate.