X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fsymfile.c;h=8e3cf7f23e57b8740edbd54dc6e22eb9d23c5abf;hb=f65fe5704af56aca58fd5547d0841a9512e540af;hp=eef27a8418ebaf1705865827104a44cafb3d9957;hpb=bda13cdcf0db4d9cee648bfa0bfc7f1a4415d2a7;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/symfile.c b/gdb/symfile.c index eef27a8418..8e3cf7f23e 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1093,10 +1093,7 @@ symbol_file_add_with_addrs (bfd *abfd, const char *name, if (mainline) flags |= OBJF_MAINLINE; - objfile = objfile::make (abfd, name, flags); - - if (parent) - add_separate_debug_objfile (objfile, parent); + objfile = objfile::make (abfd, name, flags, parent); /* We either created a new mapped symbol table, mapped an existing symbol table file which has not had initial symbol reading