1 Index: gdb-6.8.50.20081128/gdb/gcore.c
2 ===================================================================
3 --- gdb-6.8.50.20081128.orig/gdb/gcore.c 2008-09-11 16:27:34.000000000 +0200
4 +++ gdb-6.8.50.20081128/gdb/gcore.c 2008-12-01 16:39:04.000000000 +0100
5 @@ -475,8 +475,14 @@ gcore_copy_callback (bfd *obfd, asection
9 + /* Warn if read error occurs except if we were trying to read the
10 + first page for ia64. The first page is marked readable, but it cannot
12 if (target_read_memory (bfd_section_vma (obfd, osec) + offset,
13 - memhunk, size) != 0)
15 + && (strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name,
17 + || bfd_section_vma (obfd, osec) != 0))
19 warning (_("Memory read failed for corefile section, %s bytes at 0x%s."),
20 plongest (size), paddr (bfd_section_vma (obfd, osec)));