This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Darwin: tune complaint message


currently machoread emits a message if a debugging stab is found.  However, some darwin system libraries have N_OPT stabs, which triggered the complaint.  They aren't anymore considered as debugging stabs with this patch.  Also the complaint message now contains the objfile name.

Committed on trunk.


2011-12-07  Tristan Gingold  <>

	* machoread.c (macho_symtab_read): Do not consider N_OPT as
	a debugging stab.  Improve complaint message.

diff --git a/gdb/machoread.c b/gdb/machoread.c
index f5e9ce7..a566d97 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -230,9 +230,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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]