PR 4606
authorAlan Modra <amodra@gmail.com>
Wed, 15 Sep 2010 03:30:30 +0000 (03:30 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 15 Sep 2010 03:30:30 +0000 (03:30 +0000)
* gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
than setting SEC_NEVER_LOAD on sections that need not be copied.

gdb/ChangeLog
gdb/gcore.c

index 6ca89bf795fbcf7b2bfeecfee71088d112b43f6a..c4d5312eb822ef0ee6d69b7ff41ab54bab231166 100644 (file)
@@ -1,3 +1,9 @@
+2010-09-15  Alan Modra  <amodra@gmail.com>
+
+       PR 4606
+       * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
+       than setting SEC_NEVER_LOAD on sections that need not be copied.
+
 2010-09-14  Tom Tromey  <tromey@redhat.com>
 
        * psympriv.h (add_psymbol_to_list, init_psymbol_list)
 
        * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
        type to be signed.
-       
+
 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * dwarf2read.c (fixup_partial_die): Do not set dummy name for
index 595c6431dd56abb4347a72e69412265771452a96..9fc0a7f35579af67c712601cd03431fba848d6ed 100644 (file)
@@ -426,8 +426,7 @@ gcore_create_callback (CORE_ADDR vaddr, unsigned long size,
               || (start >= vaddr && end <= vaddr + size))
              && !(bfd_get_file_flags (abfd) & BFD_IN_MEMORY))
            {
-             flags &= ~SEC_LOAD;
-             flags |= SEC_NEVER_LOAD;
+             flags &= ~(SEC_LOAD | SEC_HAS_CONTENTS);
              goto keep;        /* break out of two nested for loops */
            }
        }