]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.3-ia64-gcore-page0-20050421.patch
- updated (performance fixes).
[packages/gdb.git] / gdb-6.3-ia64-gcore-page0-20050421.patch
1 Index: gdb-7.2.50.20110107/gdb/gcore.c
2 ===================================================================
3 --- gdb-7.2.50.20110107.orig/gdb/gcore.c        2011-01-05 23:22:49.000000000 +0100
4 +++ gdb-7.2.50.20110107/gdb/gcore.c     2011-01-07 09:04:28.000000000 +0100
5 @@ -534,8 +534,14 @@ gcore_copy_callback (bfd *obfd, asection
6        if (size > total_size)
7         size = total_size;
8  
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
11 +        be read.  */
12        if (target_read_memory (bfd_section_vma (obfd, osec) + offset,
13 -                             memhunk, size) != 0)
14 +                             memhunk, size) != 0
15 +         && (strcmp (gdbarch_bfd_arch_info (target_gdbarch)->arch_name,
16 +                     "ia64")
17 +             || bfd_section_vma (obfd, osec) != 0))
18         {
19           warning (_("Memory read failed for corefile "
20                      "section, %s bytes at %s."),
This page took 0.333938 seconds and 3 git commands to generate.