From: Tristan Gingold Date: Wed, 7 Dec 2011 09:11:25 +0000 (+0000) Subject: 2011-12-07 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f;p=binutils-gdb.git 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/ChangeLog b/gdb/ChangeLog index 312ba18e778..4d54626be8d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-07 Tristan Gingold + + * machoread.c (macho_symtab_read): Do not consider N_OPT as + a debugging stab. Improve complaint message. + 2011-12-07 Maciej W. Rozycki * mips-tdep.c (mips32_scan_prologue): Only update the immediate diff --git a/gdb/machoread.c b/gdb/machoread.c index ffb187631f1..46b8842ca1b 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -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 {