2009-12-02 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / gdb / machoread.c
index ebd90c61c8da0329d3b251573999effad97b592c..5e0a658f5c15a54ecab5157cb39b6be3b04fcad1 100644 (file)
@@ -649,10 +649,15 @@ macho_symfile_read (struct objfile *objfile, int mainline)
        }
     }
 
+  /* If we are reinitializing, or if we have never loaded syms yet,
+     set table to empty.  */
+  if (mainline)
+    init_psymbol_list (objfile, 0);
+
   if (dwarf2_has_info (objfile))
     {
       /* DWARF 2 sections */
-      dwarf2_build_psymtabs (objfile, mainline);
+      dwarf2_build_psymtabs (objfile);
     }
 
   /* Do not try to read .eh_frame/.debug_frame as they are not relocated
This page took 0.028669 seconds and 4 git commands to generate.