aboutsummaryrefslogtreecommitdiff
path: root/gdb/gcore.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-05-07 01:38:04 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-05-07 01:38:04 +0000
commit0c013353548bec7e622e7ab6095f0e301171a3ff (patch)
treed8ee28f8ad6de7119583c695583665b89c49b321 /gdb/gcore.c
parent2dd6254d5379862397953b6ee8dada3c1094c8c9 (diff)
gdb/
* gcore.c (gcore_create_callback): Ignore sections with separate_debug_objfile_backlink != NULL.
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r--gdb/gcore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c
index 24732e9058..1d1c20fef8 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -428,8 +428,9 @@ gcore_create_callback (CORE_ADDR vaddr, unsigned long size, int read,
This BFD was synthesized from reading target memory,
we don't want to omit that. */
- if (((vaddr >= start && vaddr + size <= end)
- || (start >= vaddr && end <= vaddr + size))
+ if (objfile->separate_debug_objfile_backlink == NULL
+ && ((vaddr >= start && vaddr + size <= end)
+ || (start >= vaddr && end <= vaddr + size))
&& !(bfd_get_file_flags (abfd) & BFD_IN_MEMORY))
{
flags &= ~(SEC_LOAD | SEC_HAS_CONTENTS);