]> git.pld-linux.org Git - packages/gdb.git/blob - 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
1 Index: 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 @@
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);
20 @@ -1618,6 +1620,7 @@ dwarf2_read_section (struct objfile *obj
21          }
22      }
23  
24 +#ifndef __sparc__
25  #ifdef HAVE_MMAP
26    if (pagesize == 0)
27      pagesize = getpagesize ();
28 @@ -1641,6 +1644,7 @@ dwarf2_read_section (struct objfile *obj
29         }
30      }
31  #endif
32 +#endif
33  
34    /* If we get here, we are a normal, not-compressed section.  */
35    info->buffer = buf
36 @@ -15983,6 +15987,7 @@ munmap_section_buffer (struct dwarf2_sec
37  {
38    if (info->map_addr != NULL)
39      {
40 +#ifndef __sparc__
41  #ifdef HAVE_MMAP
42        int res;
43  
44 @@ -15992,6 +15997,7 @@ munmap_section_buffer (struct dwarf2_sec
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.042716 seconds and 3 git commands to generate.