]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
- fix deps for libgdb.a
[packages/gdb.git] / gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
1 Index: gdb-7.4.50.20120703/gdb/gdb_bfd.c
2 ===================================================================
3 --- gdb-7.4.50.20120703.orig/gdb/gdb_bfd.c      2012-07-03 17:30:07.356754655 +0200
4 +++ gdb-7.4.50.20120703/gdb/gdb_bfd.c   2012-07-03 17:43:52.565762454 +0200
5 @@ -26,12 +26,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  /* An object of this type is stored in the section's user data when
19     mapping a section.  */
20 @@ -181,6 +183,7 @@ free_one_bfd_section (bfd *abfd, asectio
21  
22    if (sect != NULL && sect->data != NULL)
23      {
24 +#ifndef __sparc__
25  #ifdef HAVE_MMAP
26        if (sect->map_addr != NULL)
27         {
28 @@ -191,6 +194,7 @@ free_one_bfd_section (bfd *abfd, asectio
29         }
30        else
31  #endif
32 +#endif
33         xfree (sect->data);
34      }
35  }
36 @@ -425,6 +429,7 @@ gdb_bfd_map_section (asection *sectp, bf
37          }
38      }
39  
40 +#ifndef __sparc__
41  #ifdef HAVE_MMAP
42    {
43      /* The page size, used when mmapping.  */
44 @@ -458,6 +463,7 @@ gdb_bfd_map_section (asection *sectp, bf
45        }
46    }
47  #endif /* HAVE_MMAP */
48 +#endif
49  
50    /* If we get here, we are a normal, not-compressed section.  */
51  
This page took 0.03212 seconds and 3 git commands to generate.