]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
- updated (performance fixes).
[packages/gdb.git] / gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
CommitLineData
f412e1b4
PS
1Index: gdb-7.3.50.20110722/gdb/dwarf2read.c
2===================================================================
3--- gdb-7.3.50.20110722.orig/gdb/dwarf2read.c 2011-07-22 19:37:15.000000000 +0200
4+++ gdb-7.3.50.20110722/gdb/dwarf2read.c 2011-07-22 19:44:42.000000000 +0200
5@@ -67,12 +67,14 @@
6ed6bacf
AM
6 #ifdef HAVE_ZLIB_H
7 #include <zlib.h>
8 #endif
9+#ifndef __sparc__
10 #ifdef HAVE_MMAP
11 #include <sys/mman.h>
12 #ifndef MAP_FAILED
13 #define MAP_FAILED ((void *) -1)
14 #endif
15 #endif
16+#endif
17
18 typedef struct symbol *symbolp;
19 DEF_VEC_P (symbolp);
f412e1b4 20@@ -1618,6 +1620,7 @@ dwarf2_read_section (struct objfile *obj
6ed6bacf
AM
21 }
22 }
23
24+#ifndef __sparc__
25 #ifdef HAVE_MMAP
26 if (pagesize == 0)
27 pagesize = getpagesize ();
f412e1b4 28@@ -1641,6 +1644,7 @@ dwarf2_read_section (struct objfile *obj
6ed6bacf
AM
29 }
30 }
31 #endif
32+#endif
33
34 /* If we get here, we are a normal, not-compressed section. */
35 info->buffer = buf
f412e1b4 36@@ -15983,6 +15987,7 @@ munmap_section_buffer (struct dwarf2_sec
6ed6bacf 37 {
f412e1b4 38 if (info->map_addr != NULL)
6ed6bacf
AM
39 {
40+#ifndef __sparc__
41 #ifdef HAVE_MMAP
f412e1b4
PS
42 int res;
43
44@@ -15992,6 +15997,7 @@ munmap_section_buffer (struct dwarf2_sec
6ed6bacf
AM
45 /* Without HAVE_MMAP, we should never be here to begin with. */
46 gdb_assert_not_reached ("no mmap support");
47 #endif
48+#endif
49 }
50 }
51
This page took 0.495724 seconds and 4 git commands to generate.