aboutsummaryrefslogtreecommitdiff
path: root/gdb/machoread.c
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 /gdb/machoread.c
parent4b68bca3c10bcfb6ce2a1e877e1b9a18311b3a61 (diff)
downloadgdb-13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f.zip
gdb-13b8d0c64f1e8d31c54888a2a02af49d02ca4e7f.tar.gz
gdb-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.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r--gdb/machoread.c9
1 files changed, 8 insertions, 1 deletions
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
{