aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-12-07 09:11:25 +0000
committerTristan Gingold <gingold@adacore.com>2011-12-07 09:11:25 +0000
commit13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f (patch)
treeda2658c50eba3f009b58e922fc58dc24f11736cc
parent4b68bca3c10bcfb6ce2a1e877e1b9a18311b3a61 (diff)
downloadbinutils-13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f.zip
binutils-13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f.tar.gz
binutils-13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/machoread.c9
2 files changed, 13 insertions, 1 deletions
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 <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
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
{