diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-09-15 03:30:29 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-09-15 03:30:29 +0000 |
commit | 2b30eb2c73bd6e3e90395810f7cec50eab0e3924 (patch) | |
tree | ee2f3f1ebf8f61e4999b34078a1999d10f33ceef /gdb/gcore.c | |
parent | c150a650f5dca644a1429021bc1383a41729a21a (diff) | |
download | gdb-2b30eb2c73bd6e3e90395810f7cec50eab0e3924.tar.gz |
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 595c6431dd5..9fc0a7f3557 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 */ } } |