]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
- fixed aclocal rebuilds (no more unexpanded ACX_* macros in final configure scripts)
[packages/gdb.git] / gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
CommitLineData
6ed6bacf
AM
1--- gdb-7.2.50.20110328.orig/gdb/dwarf2read.c 2011-03-30 12:52:20.395450001 +0200
2+++ gdb-7.2.50.20110328/gdb/dwarf2read.c 2011-03-30 13:41:55.485450006 +0200
3@@ -66,12 +66,14 @@
4 #ifdef HAVE_ZLIB_H
5 #include <zlib.h>
6 #endif
7+#ifndef __sparc__
8 #ifdef HAVE_MMAP
9 #include <sys/mman.h>
10 #ifndef MAP_FAILED
11 #define MAP_FAILED ((void *) -1)
12 #endif
13 #endif
14+#endif
15
16 typedef struct symbol *symbolp;
17 DEF_VEC_P (symbolp);
18@@ -1563,6 +1565,7 @@
19 }
20 }
21
22+#ifndef __sparc__
23 #ifdef HAVE_MMAP
24 if (pagesize == 0)
25 pagesize = getpagesize ();
26@@ -1589,6 +1592,7 @@
27 }
28 }
29 #endif
30+#endif
31
32 /* If we get here, we are a normal, not-compressed section. */
33 info->buffer = buf
34@@ -15439,6 +15443,7 @@
35 {
36 if (info->was_mmapped)
37 {
38+#ifndef __sparc__
39 #ifdef HAVE_MMAP
40 intptr_t begin = (intptr_t) info->buffer;
41 intptr_t map_begin = begin & ~(pagesize - 1);
42@@ -15449,6 +15454,7 @@
43 /* Without HAVE_MMAP, we should never be here to begin with. */
44 gdb_assert_not_reached ("no mmap support");
45 #endif
46+#endif
47 }
48 }
49
This page took 0.137911 seconds and 4 git commands to generate.