diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-17 23:41:47 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-17 23:41:47 +0000 |
commit | 358b6cd47ee45ba3feb30da4988b047abbc8026c (patch) | |
tree | 4cadb09bd19a9bb2e9084e139f6d6a3865de8f26 /gcc/mips-tdump.c | |
parent | 32db054517a86e1576effb38dc2e38656cecb8b0 (diff) | |
download | gcc-358b6cd47ee45ba3feb30da4988b047abbc8026c.tar.gz |
* mips-tdump.c (print_file_desc): Handle unknown filenames and
missing local symbols.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tdump.c')
-rw-r--r-- | gcc/mips-tdump.c | 13 |
1 files changed, 8 insertions, 5 deletions
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 : "<unknown>"); + 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, |