2009-08-04 05:37:29 +00:00
|
|
|
Index: gdb-6.8.50.20090802/gdb/gcore.c
|
2006-07-11 06:33:02 +00:00
|
|
|
===================================================================
|
2009-08-04 05:37:29 +00:00
|
|
|
--- gdb-6.8.50.20090802.orig/gdb/gcore.c 2009-08-03 12:27:55.000000000 +0200
|
|
|
|
+++ gdb-6.8.50.20090802/gdb/gcore.c 2009-08-03 12:28:56.000000000 +0200
|
|
|
|
@@ -479,8 +479,14 @@ gcore_copy_callback (bfd *obfd, asection
|
2007-01-21 01:53:01 +00:00
|
|
|
if (size > total_size)
|
|
|
|
size = total_size;
|
2005-04-21 20:10:16 +00:00
|
|
|
|
2007-01-21 01:53:01 +00:00
|
|
|
+ /* 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
|
2009-08-04 05:37:29 +00:00
|
|
|
+ && (strcmp (gdbarch_bfd_arch_info (target_gdbarch)->arch_name,
|
2007-11-01 20:24:20 +00:00
|
|
|
+ "ia64")
|
2007-01-21 01:53:01 +00:00
|
|
|
+ || bfd_section_vma (obfd, osec) != 0))
|
|
|
|
{
|
2009-08-04 05:37:29 +00:00
|
|
|
warning (_("Memory read failed for corefile section, %s bytes at %s."),
|
|
|
|
plongest (size),
|