From: Jan Kratochvil Date: Tue, 7 May 2013 01:38:04 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c013353548bec7e622e7ab6095f0e301171a3ff;p=binutils-gdb.git gdb/ * gcore.c (gcore_create_callback): Ignore sections with separate_debug_objfile_backlink != NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index af14702e59d..b729ec1e3b0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-07 Jan Kratochvil + + * gcore.c (gcore_create_callback): Ignore sections with + separate_debug_objfile_backlink != NULL. + 2013-05-06 Sandra Loosemore Andrew Jenner Chung-Lin Tang diff --git a/gdb/gcore.c b/gdb/gcore.c index 24732e90586..1d1c20fef8e 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);