From 13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 7 Dec 2011 09:11:25 +0000 Subject: [PATCH] 2011-12-07 Tristan Gingold * machoread.c (macho_symtab_read): Do not consider N_OPT as a debugging stab. Improve complaint message. --- gdb/ChangeLog | 5 +++++ gdb/machoread.c | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 312ba18..4d54626 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 ffb1876..46b8842 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 { -- 2.7.4