Blame SOURCES/gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch

e1d87d
Index: gdb-7.9.90.20150709/gdb/gdb_bfd.c
e1d87d
===================================================================
e1d87d
--- gdb-7.9.90.20150709.orig/gdb/gdb_bfd.c	2015-07-09 18:23:59.344017882 +0200
e1d87d
+++ gdb-7.9.90.20150709/gdb/gdb_bfd.c	2015-07-09 18:24:06.986083071 +0200
e1d87d
@@ -24,12 +24,14 @@
e1d87d
 #include "hashtab.h"
e1d87d
 #include "filestuff.h"
e1d87d
 #include "vec.h"
e1d87d
+#ifndef __sparc__
e1d87d
 #ifdef HAVE_MMAP
e1d87d
 #include <sys/mman.h>
e1d87d
 #ifndef MAP_FAILED
e1d87d
 #define MAP_FAILED ((void *) -1)
e1d87d
 #endif
e1d87d
 #endif
e1d87d
+#endif
e1d87d
 #include "target.h"
e1d87d
 #include "gdb/fileio.h"
e1d87d
 #include "inferior.h"
e1d87d
@@ -397,6 +399,7 @@ free_one_bfd_section (bfd *abfd, asectio
e1d87d
 
e1d87d
   if (sect != NULL && sect->data != NULL)
e1d87d
     {
e1d87d
+#ifndef __sparc__
e1d87d
 #ifdef HAVE_MMAP
e1d87d
       if (sect->map_addr != NULL)
e1d87d
 	{
e1d87d
@@ -407,6 +410,7 @@ free_one_bfd_section (bfd *abfd, asectio
e1d87d
 	}
e1d87d
       else
e1d87d
 #endif
e1d87d
+#endif
e1d87d
 	xfree (sect->data);
e1d87d
     }
e1d87d
 }
e1d87d
@@ -558,6 +562,7 @@ gdb_bfd_map_section (asection *sectp, bf
e1d87d
   if (descriptor->data != NULL)
e1d87d
     goto done;
e1d87d
 
e1d87d
+#ifndef __sparc__
e1d87d
 #ifdef HAVE_MMAP
e1d87d
   if (!bfd_is_section_compressed (abfd, sectp))
e1d87d
     {
e1d87d
@@ -592,6 +597,7 @@ gdb_bfd_map_section (asection *sectp, bf
e1d87d
 	}
e1d87d
     }
e1d87d
 #endif /* HAVE_MMAP */
e1d87d
+#endif
e1d87d
 
e1d87d
   /* Handle compressed sections, or ordinary uncompressed sections in
e1d87d
      the no-mmap case.  */