diff options
author | Alan Modra <amodra@gmail.com> | 2010-09-15 03:30:30 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-09-15 03:30:30 +0000 |
commit | 349126ea35abd5b62676149a290a2a6c22e6aac3 (patch) | |
tree | f72754988df42bd549645d0277a0013dff5656e2 /gdb/gcore.c | |
parent | 41dfe9624c37a88814610981eb30e5939a945a2a (diff) | |
download | gdb-349126ea35abd5b62676149a290a2a6c22e6aac3.zip gdb-349126ea35abd5b62676149a290a2a6c22e6aac3.tar.gz gdb-349126ea35abd5b62676149a290a2a6c22e6aac3.tar.bz2 |
PR 4606
* gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
than setting SEC_NEVER_LOAD on sections that need not be copied.
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r-- | gdb/gcore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index 595c643..9fc0a7f3 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -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 */ } } |