tdawson / rpms / gdb

Forked from rpms/gdb 3 years ago
Clone
1cd4f38
--- gdb-7.2.50.20110328.orig/gdb/dwarf2read.c	2011-03-30 12:52:20.395450001 +0200
1cd4f38
+++ gdb-7.2.50.20110328/gdb/dwarf2read.c	2011-03-30 13:41:55.485450006 +0200
1cd4f38
@@ -66,12 +66,14 @@
1cd4f38
 #ifdef HAVE_ZLIB_H
1cd4f38
 #include <zlib.h>
1cd4f38
 #endif
1cd4f38
+#ifndef __sparc__
1cd4f38
 #ifdef HAVE_MMAP
1cd4f38
 #include <sys/mman.h>
1cd4f38
 #ifndef MAP_FAILED
1cd4f38
 #define MAP_FAILED ((void *) -1)
1cd4f38
 #endif
1cd4f38
 #endif
1cd4f38
+#endif
1cd4f38
 
1cd4f38
 typedef struct symbol *symbolp;
1cd4f38
 DEF_VEC_P (symbolp);
1cd4f38
@@ -1563,6 +1565,7 @@
1cd4f38
         }
1cd4f38
     }
1cd4f38
 
1cd4f38
+#ifndef __sparc__
1cd4f38
 #ifdef HAVE_MMAP
1cd4f38
   if (pagesize == 0)
1cd4f38
     pagesize = getpagesize ();
1cd4f38
@@ -1589,6 +1592,7 @@
1cd4f38
 	}
1cd4f38
     }
1cd4f38
 #endif
1cd4f38
+#endif
1cd4f38
 
1cd4f38
   /* If we get here, we are a normal, not-compressed section.  */
1cd4f38
   info->buffer = buf
1cd4f38
@@ -15439,6 +15443,7 @@
1cd4f38
 {
1cd4f38
   if (info->was_mmapped)
1cd4f38
     {
1cd4f38
+#ifndef __sparc__
1cd4f38
 #ifdef HAVE_MMAP
1cd4f38
       intptr_t begin = (intptr_t) info->buffer;
1cd4f38
       intptr_t map_begin = begin & ~(pagesize - 1);
1cd4f38
@@ -15449,6 +15454,7 @@
1cd4f38
       /* Without HAVE_MMAP, we should never be here to begin with.  */
1cd4f38
       gdb_assert_not_reached ("no mmap support");
1cd4f38
 #endif
1cd4f38
+#endif
1cd4f38
     }
1cd4f38
 }
1cd4f38