]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-6.6-buildid-locate-rpm-scl.patch
- up to 8.3
[packages/gdb.git] / gdb-6.6-buildid-locate-rpm-scl.patch
index f2f605df3c965fd323d93beab0049036234ca441..5b3d4ad568770f1def76f5c9af5f63b0d4a5acf5 100644 (file)
@@ -1,10 +1,18 @@
+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-6.6-buildid-locate-rpm-scl.patch
+
+;; [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585).
+;;=push+jan
+
 warning: Skipping deprecated .gdb_index section
 https://bugzilla.redhat.com/show_bug.cgi?id=953585
 
-diff -dup -rup gdb-7.10.50.20160106-orig/gdb/build-id.c gdb-7.10.50.20160106/gdb/build-id.c
---- gdb-7.10.50.20160106-orig/gdb/build-id.c   2016-01-09 14:40:39.420385241 +0100
-+++ gdb-7.10.50.20160106/gdb/build-id.c        2016-01-09 14:41:05.944549393 +0100
-@@ -713,7 +713,11 @@ static int missing_rpm_list_entries;
+diff --git a/gdb/build-id.c b/gdb/build-id.c
+--- a/gdb/build-id.c
++++ b/gdb/build-id.c
+@@ -746,7 +746,11 @@ static int missing_rpm_list_entries;
  /* Returns the count of newly added rpms.  */
  
  static int
@@ -16,7 +24,7 @@ diff -dup -rup gdb-7.10.50.20160106-orig/gdb/build-id.c gdb-7.10.50.20160106/gdb
  {
    static int rpm_init_done = 0;
    rpmts ts;
-@@ -817,7 +821,11 @@ missing_rpm_enlist (const char *filename
+@@ -853,7 +857,11 @@ missing_rpm_enlist (const char *filename)
    mi = rpmtsInitIterator_p (ts, RPMTAG_BASENAMES, filename, 0);
    if (mi != NULL)
      {
@@ -28,7 +36,7 @@ diff -dup -rup gdb-7.10.50.20160106-orig/gdb/build-id.c gdb-7.10.50.20160106/gdb
        {
          Header h;
          char *debuginfo, **slot, *s, *s2;
-@@ -935,6 +943,37 @@ missing_rpm_enlist (const char *filename
+@@ -971,6 +979,37 @@ missing_rpm_enlist (const char *filename)
            xfree (debuginfo);
          count++;
        }
@@ -66,7 +74,7 @@ diff -dup -rup gdb-7.10.50.20160106-orig/gdb/build-id.c gdb-7.10.50.20160106/gdb
  
        rpmdbFreeIterator_p (mi);
      }
-@@ -945,6 +984,21 @@ missing_rpm_enlist (const char *filename
+@@ -981,6 +1020,21 @@ missing_rpm_enlist (const char *filename)
  }
  
  static int
@@ -88,10 +96,10 @@ diff -dup -rup gdb-7.10.50.20160106-orig/gdb/build-id.c gdb-7.10.50.20160106/gdb
  missing_rpm_list_compar (const char *const *ap, const char *const *bp)
  {
    return strcoll (*ap, *bp);
-diff -dup -rup gdb-7.10.50.20160106-orig/gdb/dwarf2read.c gdb-7.10.50.20160106/gdb/dwarf2read.c
---- gdb-7.10.50.20160106-orig/gdb/dwarf2read.c 2016-01-09 14:40:39.416385216 +0100
-+++ gdb-7.10.50.20160106/gdb/dwarf2read.c      2016-01-09 14:41:05.942549381 +0100
-@@ -3111,6 +3111,16 @@ read_index_from_section (struct objfile
+diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
+--- a/gdb/dwarf2read.c
++++ b/gdb/dwarf2read.c
+@@ -3501,6 +3501,16 @@ read_gdb_index_from_buffer (struct objfile *objfile,
       "set use-deprecated-index-sections on".  */
    if (version < 6 && !deprecated_ok)
      {
@@ -108,7 +116,7 @@ diff -dup -rup gdb-7.10.50.20160106-orig/gdb/dwarf2read.c gdb-7.10.50.20160106/g
        static int warning_printed = 0;
        if (!warning_printed)
        {
-@@ -3122,6 +3132,10 @@ to use the section anyway."),
+@@ -3512,6 +3522,10 @@ to use the section anyway."),
          warning_printed = 1;
        }
        return 0;
This page took 0.059699 seconds and 4 git commands to generate.