diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gcore.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index af14702..b729ec1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com> + + * gcore.c (gcore_create_callback): Ignore sections with + separate_debug_objfile_backlink != NULL. + 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> Andrew Jenner <andrew@codesourcery.com> Chung-Lin Tang <cltang@codesourcery.com> diff --git a/gdb/gcore.c b/gdb/gcore.c index 24732e9..1d1c20f 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); |