- Merge from fedoras gdb-7.7-1.fc21, a rebase to FSF GDB 7.7. The 7.7 features are: * For C++, the 'typeid' operator has been added and exception catchpoints can be filtered by type. * Python scripting has been extended * New commands and new command options * New convenice variables/functions * Some GDB/MI improvements * Remote protocal improvments * SystemTap SDT probes support AArch64 GNU/Linux * Support for Fission DWP file format version 2 * 'tsave' command supports CTF (Common Trace Format) * New script 'gcore' - Remove now obsolete gdb-aarch64-hw-break.patch - Remove merged bits from gdb-ppc64le.patch - Rediff gdb-6.6-buildid-locate-rpm-suse.patch - Add gdb-fix-attach-signalled-detach-stopped.patch OBS-URL: https://build.opensuse.org/request/show/221530 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=92
52 lines
1.2 KiB
Diff
52 lines
1.2 KiB
Diff
Index: gdb-7.6.90.20140127/gdb/gdb_bfd.c
|
|
===================================================================
|
|
--- gdb-7.6.90.20140127.orig/gdb/gdb_bfd.c 2014-02-06 17:39:46.370096290 +0100
|
|
+++ gdb-7.6.90.20140127/gdb/gdb_bfd.c 2014-02-06 17:40:14.996127247 +0100
|
|
@@ -29,12 +29,14 @@
|
|
#ifdef HAVE_ZLIB_H
|
|
#include <zlib.h>
|
|
#endif
|
|
+#ifndef __sparc__
|
|
#ifdef HAVE_MMAP
|
|
#include <sys/mman.h>
|
|
#ifndef MAP_FAILED
|
|
#define MAP_FAILED ((void *) -1)
|
|
#endif
|
|
#endif
|
|
+#endif
|
|
|
|
typedef bfd *bfdp;
|
|
DEF_VEC_P (bfdp);
|
|
@@ -210,6 +212,7 @@ free_one_bfd_section (bfd *abfd, asectio
|
|
|
|
if (sect != NULL && sect->data != NULL)
|
|
{
|
|
+#ifndef __sparc__
|
|
#ifdef HAVE_MMAP
|
|
if (sect->map_addr != NULL)
|
|
{
|
|
@@ -220,6 +223,7 @@ free_one_bfd_section (bfd *abfd, asectio
|
|
}
|
|
else
|
|
#endif
|
|
+#endif
|
|
xfree (sect->data);
|
|
}
|
|
}
|
|
@@ -371,6 +375,7 @@ gdb_bfd_map_section (asection *sectp, bf
|
|
if (descriptor->data != NULL)
|
|
goto done;
|
|
|
|
+#ifndef __sparc__
|
|
#ifdef HAVE_MMAP
|
|
if (!bfd_is_section_compressed (abfd, sectp))
|
|
{
|
|
@@ -405,6 +410,7 @@ gdb_bfd_map_section (asection *sectp, bf
|
|
}
|
|
}
|
|
#endif /* HAVE_MMAP */
|
|
+#endif
|
|
|
|
/* Handle compressed sections, or ordinary uncompressed sections in
|
|
the no-mmap case. */
|