2011-12-07 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Wed, 7 Dec 2011 09:11:25 +0000 (09:11 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 7 Dec 2011 09:11:25 +0000 (09:11 +0000)
* machoread.c (macho_symtab_read): Do not consider N_OPT as
a debugging stab.  Improve complaint message.

gdb/ChangeLog
gdb/machoread.c

index 312ba18e7783cf9ba90000c4e9278a2f408c2b30..4d54626be8da095ec52ac305d47d4361725c51ee 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-07  Tristan Gingold  <gingold@adacore.com>
+
+       * machoread.c (macho_symtab_read): Do not consider N_OPT as
+       a debugging stab.  Improve complaint message.
+
 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * mips-tdep.c (mips32_scan_prologue): Only update the immediate
index ffb187631f1d86fdbf5863e90ef2eb5d6e88ba87..46b8842ca1b84c80a74b0a481e283d892cb315ca 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
             {
This page took 0.033316 seconds and 4 git commands to generate.