diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce3514b41fc..5d97593990c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 18 00:36:13 1999 Rainer Orth + + * mips-tdump.c (print_file_desc): Handle unknown filenames and + missing local symbols. + Sun Jan 17 21:04:31 1999 Richard Henderson * jump.c (rtx_renumbered_equal_p): Special case CODE_LABEL. diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index 1f9c0452700..9d3143d1028 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -1158,8 +1158,10 @@ print_file_desc (fdp, number) aux_base = aux_symbols + fdp->iauxBase; used_base = aux_used + (aux_base - aux_symbols); - printf ("\nFile #%d, \"%s\"\n\n", number, str_base + fdp->rss); - + printf ("\nFile #%d, \"%s\"\n\n", + number, + fdp->rss != issNil ? str_base + fdp->rss : ""); + printf (" Name index = %-10ld Readin = %s\n", (long) fdp->rss, (fdp->fReadin) ? "Yes" : "No"); @@ -1293,9 +1295,10 @@ print_file_desc (fdp, number) PDR *proc_ptr = &proc_desc[pdi]; printf ("\n\tProcedure descriptor %d:\n", (pdi - fdp->ipdFirst)); - printf ("\t Name index = %-11ld Name = \"%s\"\n", - (long) l_symbols[proc_ptr->isym + fdp->isymBase].iss, - l_symbols[proc_ptr->isym + fdp->isymBase].iss + str_base); + if (l_symbols != 0) + printf ("\t Name index = %-11ld Name = \"%s\"\n", + (long) l_symbols[proc_ptr->isym + fdp->isymBase].iss, + l_symbols[proc_ptr->isym + fdp->isymBase].iss + str_base); printf ("\t .mask 0x%08lx,%-9ld .fmask 0x%08lx,%ld\n", (long) proc_ptr->regmask,