Make add_separate_debug_objfile static
[deliverable/binutils-gdb.git] / gdb / symfile.c
index eef27a8418ebaf1705865827104a44cafb3d9957..8e3cf7f23e57b8740edbd54dc6e22eb9d23c5abf 100644 (file)
@@ -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
This page took 0.025763 seconds and 4 git commands to generate.