aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 4577339..b6523e1 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -330,6 +330,8 @@ static void
mipscoff_new_init (ignore)
struct objfile *ignore;
{
+ stabsread_new_init ();
+ buildsym_new_init ();
}
static void
@@ -2459,10 +2461,13 @@ psymtab_to_symtab_1 (pst, filename)
/* Handle encoded stab line number. */
record_line (current_subfile, sh.index, valu);
}
+ else if (sh.st == stProc || sh.st == stStaticProc || sh.st == stEnd)
+ /* These are generated by gcc-2.x, do not complain */
+ ;
else
complain (&stab_unknown_complaint, name);
}
- st = end_symtab (pst->texthigh, 0, 0, pst->objfile);
+ st = end_symtab (pst->texthigh, 0, 0, pst->objfile, SECT_OFF_TEXT);
end_stabs ();
/* Sort the symbol table now, we are done adding symbols to it.