]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - gdb/patches/gdb-6.3-ia64-gcore-page0-20050421.patch
gdb: Update to 7.3.50.20110722.
[people/pmueller/ipfire-3.x.git] / gdb / patches / gdb-6.3-ia64-gcore-page0-20050421.patch
diff --git a/gdb/patches/gdb-6.3-ia64-gcore-page0-20050421.patch b/gdb/patches/gdb-6.3-ia64-gcore-page0-20050421.patch
new file mode 100644 (file)
index 0000000..ecdfbae
--- /dev/null
@@ -0,0 +1,20 @@
+Index: gdb-7.2.50.20110107/gdb/gcore.c
+===================================================================
+--- gdb-7.2.50.20110107.orig/gdb/gcore.c       2011-01-05 23:22:49.000000000 +0100
++++ gdb-7.2.50.20110107/gdb/gcore.c    2011-01-07 09:04:28.000000000 +0100
+@@ -534,8 +534,14 @@ gcore_copy_callback (bfd *obfd, asection
+       if (size > total_size)
+       size = total_size;
++      /* Warn if read error occurs except if we were trying to read the
++       first page for ia64.  The first page is marked readable, but it cannot
++       be read.  */
+       if (target_read_memory (bfd_section_vma (obfd, osec) + offset,
+-                            memhunk, size) != 0)
++                            memhunk, size) != 0
++        && (strcmp (gdbarch_bfd_arch_info (target_gdbarch)->arch_name,
++                    "ia64")
++            || bfd_section_vma (obfd, osec) != 0))
+       {
+         warning (_("Memory read failed for corefile "
+                    "section, %s bytes at %s."),