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

2c2fa1
Index: gdb-7.5.50.20130118/gdb/gdb_bfd.c
2c2fa1
===================================================================
2c2fa1
--- gdb-7.5.50.20130118.orig/gdb/gdb_bfd.c	2013-01-18 23:11:18.158718709 +0100
2c2fa1
+++ gdb-7.5.50.20130118/gdb/gdb_bfd.c	2013-01-18 23:12:06.841787893 +0100
2c2fa1
@@ -27,12 +27,14 @@
2c2fa1
 #ifdef HAVE_ZLIB_H
2c2fa1
 #include <zlib.h>
2c2fa1
 #endif
2c2fa1
+#ifndef __sparc__
2c2fa1
 #ifdef HAVE_MMAP
2c2fa1
 #include <sys/mman.h>
2c2fa1
 #ifndef MAP_FAILED
2c2fa1
 #define MAP_FAILED ((void *) -1)
2c2fa1
 #endif
2c2fa1
 #endif
2c2fa1
+#endif
2c2fa1
 
2c2fa1
 /* An object of this type is stored in the section's user data when
2c2fa1
    mapping a section.  */
2c2fa1
@@ -205,6 +207,7 @@ free_one_bfd_section (bfd *abfd, asectio
2c2fa1
 
2c2fa1
   if (sect != NULL && sect->data != NULL)
2c2fa1
     {
2c2fa1
+#ifndef __sparc__
2c2fa1
 #ifdef HAVE_MMAP
2c2fa1
       if (sect->map_addr != NULL)
2c2fa1
 	{
2c2fa1
@@ -215,6 +218,7 @@ free_one_bfd_section (bfd *abfd, asectio
2c2fa1
 	}
2c2fa1
       else
2c2fa1
 #endif
2c2fa1
+#endif
2c2fa1
 	xfree (sect->data);
2c2fa1
     }
2c2fa1
 }
2c2fa1
@@ -360,6 +364,7 @@ gdb_bfd_map_section (asection *sectp, bf
2c2fa1
   if (descriptor->data != NULL)
2c2fa1
     goto done;
2c2fa1
 
2c2fa1
+#ifndef __sparc__
2c2fa1
 #ifdef HAVE_MMAP
2c2fa1
   if (!bfd_is_section_compressed (abfd, sectp))
2c2fa1
     {
2c2fa1
@@ -394,6 +399,7 @@ gdb_bfd_map_section (asection *sectp, bf
2c2fa1
 	}
2c2fa1
     }
2c2fa1
 #endif /* HAVE_MMAP */
2c2fa1
+#endif
2c2fa1
 
2c2fa1
   /* Handle compressed sections, or ordinary uncompressed sections in
2c2fa1
      the no-mmap case.  */