2011-12-07 Tristan Gingold <gingold@adacore.com>
[external/binutils.git] / gdb / machoread.c
index ffb1876..46b8842 100644 (file)
@@ -229,9 +229,16 @@ macho_symtab_read (struct objfile *objfile,
             }
           else if (sym->flags & BSF_DEBUGGING)
             {
+              if (mach_o_sym->n_type == N_OPT)
+                {
+                  /* No complaint for OPT.  */
+                  break;
+                }
+
               /* Debugging symbols are not expected here.  */
               complaint (&symfile_complaints,
-                         _("Unexpected debug stab outside SO markers"));
+                         _("%s: Unexpected debug stab outside SO markers"),
+                         objfile->name);
             }
           else
             {