diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-07 01:38:04 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-07 01:38:04 +0000 |
commit | 0c013353548bec7e622e7ab6095f0e301171a3ff (patch) | |
tree | d8ee28f8ad6de7119583c695583665b89c49b321 | |
parent | 2dd6254d5379862397953b6ee8dada3c1094c8c9 (diff) | |
download | gdb-0c013353548bec7e622e7ab6095f0e301171a3ff.zip gdb-0c013353548bec7e622e7ab6095f0e301171a3ff.tar.gz gdb-0c013353548bec7e622e7ab6095f0e301171a3ff.tar.bz2 |
gdb/
* gcore.c (gcore_create_callback): Ignore sections with
separate_debug_objfile_backlink != NULL.
-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); |