Blame gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
|
Jan Kratochvil |
2c55a54 |
Index: gdb-7.6.90.20140127/gdb/gdb_bfd.c
|
|
Jan Kratochvil |
3b55f78 |
===================================================================
|
|
Jan Kratochvil |
2c55a54 |
--- gdb-7.6.90.20140127.orig/gdb/gdb_bfd.c 2014-02-06 17:39:46.370096290 +0100
|
|
Jan Kratochvil |
2c55a54 |
+++ gdb-7.6.90.20140127/gdb/gdb_bfd.c 2014-02-06 17:40:14.996127247 +0100
|
|
Jan Kratochvil |
2c55a54 |
@@ -29,12 +29,14 @@
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#ifdef HAVE_ZLIB_H
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#include <zlib.h>
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#endif
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
+#ifndef __sparc__
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#ifdef HAVE_MMAP
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#include <sys/mman.h>
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#ifndef MAP_FAILED
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#define MAP_FAILED ((void *) -1)
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#endif
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#endif
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
+#endif
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
|
|
Jan Kratochvil |
2c55a54 |
typedef bfd *bfdp;
|
|
Jan Kratochvil |
2c55a54 |
DEF_VEC_P (bfdp);
|
|
Jan Kratochvil |
2c55a54 |
@@ -210,6 +212,7 @@ free_one_bfd_section (bfd *abfd, asectio
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
|
|
Jan Kratochvil |
11eae30 |
if (sect != NULL && sect->data != NULL)
|
|
Jan Kratochvil |
11eae30 |
{
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
+#ifndef __sparc__
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#ifdef HAVE_MMAP
|
|
Jan Kratochvil |
11eae30 |
if (sect->map_addr != NULL)
|
|
Jan Kratochvil |
11eae30 |
{
|
|
Jan Kratochvil |
2c55a54 |
@@ -220,6 +223,7 @@ free_one_bfd_section (bfd *abfd, asectio
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
}
|
|
Jan Kratochvil |
11eae30 |
else
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#endif
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
+#endif
|
|
Jan Kratochvil |
11eae30 |
xfree (sect->data);
|
|
Jan Kratochvil |
11eae30 |
}
|
|
Jan Kratochvil |
11eae30 |
}
|
|
Jan Kratochvil |
2c55a54 |
@@ -371,6 +375,7 @@ gdb_bfd_map_section (asection *sectp, bf
|
|
Jan Kratochvil |
556378e |
if (descriptor->data != NULL)
|
|
Jan Kratochvil |
556378e |
goto done;
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
+#ifndef __sparc__
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
#ifdef HAVE_MMAP
|
|
Jan Kratochvil |
556378e |
if (!bfd_is_section_compressed (abfd, sectp))
|
|
Jan Kratochvil |
556378e |
{
|
|
Jan Kratochvil |
2c55a54 |
@@ -405,6 +410,7 @@ gdb_bfd_map_section (asection *sectp, bf
|
|
Jan Kratochvil |
556378e |
}
|
|
Jan Kratochvil |
556378e |
}
|
|
Jan Kratochvil |
11eae30 |
#endif /* HAVE_MMAP */
|
|
![](https://seccdn.libravatar.org/avatar/56499465bac4450cf2bbfd60081c337e127d078e72677135a052b071edd8cdc2?s=16&d=retro) |
1cd4f38 |
+#endif
|
|
Jan Kratochvil |
11eae30 |
|
|
Jan Kratochvil |
556378e |
/* Handle compressed sections, or ordinary uncompressed sections in
|
|
Jan Kratochvil |
556378e |
the no-mmap case. */
|