aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-28 16:56:58 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-28 16:56:58 +0000
commitbb7cb9828ee01c17d4a11808e6bae50443bacd36 (patch)
tree93c0600c43e171b9d8dd7bf4b339f9107462a2f5 /gdb/mdebugread.c
parent1f029792a259130acb9794653b428959ceabcf20 (diff)
downloadgdb-bb7cb9828ee01c17d4a11808e6bae50443bacd36.zip
gdb-bb7cb9828ee01c17d4a11808e6bae50443bacd36.tar.gz
gdb-bb7cb9828ee01c17d4a11808e6bae50443bacd36.tar.bz2
* mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
index indexNil.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index dd50a5e..352b4c4 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -2748,10 +2748,17 @@ psymtab_to_symtab_1 (pst, filename)
add_symbol_to_list (s, &local_symbols);
}
}
- else if (sh.st == stLabel && sh.index != indexNil)
+ else if (sh.st == stLabel)
{
- /* Handle encoded stab line number. */
- record_line (current_subfile, sh.index, valu);
+ if (sh.index == indexNil)
+ {
+ /* This is what the gcc2_compiled and __gnu_compiled_*
+ show up as. So don't complain. */
+ ;
+ }
+ else
+ /* 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 */