diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-01 19:38:59 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-01 19:38:59 +0000 |
commit | 848a873ee947a94838a68d219f211de23aeea96b (patch) | |
tree | 3dd8284db951aa8758f30f6356cfcd52dda61763 /gdb/objfiles.c | |
parent | 9027410698dbc498f44441201784578570a0a6f6 (diff) | |
download | gdb-848a873ee947a94838a68d219f211de23aeea96b.tar.gz |
gdb/
* elfread.c (elf_symfile_read): Limit separate debug info additions to
files with no separate debug info.
* objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
* symfile.c (read_symbols): Call find_separate_debug_file_in_section
only for files with no separate debug info.
gdb/testsuite/
* gdb.base/gnu-debugdata.exp): Create ${binfile}.debug,
${binfile}.mini_debuginfo-debuglink, add -k to xz, use now
${binfile}.mini_debuginfo-debuglink and
${binfile}.mini_debuginfo-debuglink.xz.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 5232c8ffb91..5829699131d 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -476,6 +476,9 @@ add_separate_debug_objfile (struct objfile *objfile, struct objfile *parent) /* Must not be already in a list. */ gdb_assert (objfile->separate_debug_objfile_backlink == NULL); gdb_assert (objfile->separate_debug_objfile_link == NULL); + gdb_assert (objfile->separate_debug_objfile == NULL); + gdb_assert (parent->separate_debug_objfile_backlink == NULL); + gdb_assert (parent->separate_debug_objfile_link == NULL); objfile->separate_debug_objfile_backlink = parent; objfile->separate_debug_objfile_link = parent->separate_debug_objfile; |