aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 81f7ec1..709559c 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1489,6 +1489,8 @@ find_pc_line (pc, notcurrent)
{
/* Find the best line in this symtab. */
l = LINETABLE (s);
+ if (!l)
+ continue;
len = l->nitems;
prev_line = -1;
first_line = -1;
@@ -1638,6 +1640,8 @@ find_line_common (l, lineno, exact_match)
if (lineno <= 0)
return -1;
+ if (l == 0)
+ return -1;
len = l->nitems;
for (i = 0; i < len; i++)