-Index: gdb-7.3.50.20110722/gdb/dwarf2read.c
+Index: gdb-7.4.50.20120703/gdb/gdb_bfd.c
===================================================================
---- gdb-7.3.50.20110722.orig/gdb/dwarf2read.c 2011-07-22 19:37:15.000000000 +0200
-+++ gdb-7.3.50.20110722/gdb/dwarf2read.c 2011-07-22 19:44:42.000000000 +0200
-@@ -67,12 +67,14 @@
+--- gdb-7.4.50.20120703.orig/gdb/gdb_bfd.c 2012-07-03 17:30:07.356754655 +0200
++++ gdb-7.4.50.20120703/gdb/gdb_bfd.c 2012-07-03 17:43:52.565762454 +0200
+@@ -26,12 +26,14 @@
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif
#endif
+#endif
- typedef struct symbol *symbolp;
- DEF_VEC_P (symbolp);
-@@ -1618,6 +1620,7 @@ dwarf2_read_section (struct objfile *obj
- }
- }
+ /* An object of this type is stored in the section's user data when
+ mapping a section. */
+@@ -181,6 +183,7 @@ free_one_bfd_section (bfd *abfd, asectio
+ if (sect != NULL && sect->data != NULL)
+ {
+#ifndef __sparc__
#ifdef HAVE_MMAP
- if (pagesize == 0)
- pagesize = getpagesize ();
-@@ -1641,6 +1644,7 @@ dwarf2_read_section (struct objfile *obj
+ if (sect->map_addr != NULL)
+ {
+@@ -191,6 +194,7 @@ free_one_bfd_section (bfd *abfd, asectio
}
- }
+ else
#endif
+#endif
+ xfree (sect->data);
+ }
+ }
+@@ -425,6 +429,7 @@ gdb_bfd_map_section (asection *sectp, bf
+ }
+ }
- /* If we get here, we are a normal, not-compressed section. */
- info->buffer = buf
-@@ -15983,6 +15987,7 @@ munmap_section_buffer (struct dwarf2_sec
- {
- if (info->map_addr != NULL)
- {
+#ifndef __sparc__
#ifdef HAVE_MMAP
- int res;
-
-@@ -15992,6 +15997,7 @@ munmap_section_buffer (struct dwarf2_sec
- /* Without HAVE_MMAP, we should never be here to begin with. */
- gdb_assert_not_reached ("no mmap support");
- #endif
+ {
+ /* The page size, used when mmapping. */
+@@ -458,6 +463,7 @@ gdb_bfd_map_section (asection *sectp, bf
+ }
+ }
+ #endif /* HAVE_MMAP */
+#endif
- }
- }
+
+ /* If we get here, we are a normal, not-compressed section. */