diff options
author | Stu Grossman <grossman@cygnus> | 1992-03-05 20:20:27 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-03-05 20:20:27 +0000 |
commit | 407a8389b40fa7af08cae8f1eb347c67cc2436ad (patch) | |
tree | 406cb28847fadd93989dfe892e36c65eb1dc65de /gdb/mipsread.c | |
parent | d7eddc517782bf0673e4bcd15c4159ae5799a247 (diff) | |
download | gdb-407a8389b40fa7af08cae8f1eb347c67cc2436ad.zip gdb-407a8389b40fa7af08cae8f1eb347c67cc2436ad.tar.gz gdb-407a8389b40fa7af08cae8f1eb347c67cc2436ad.tar.bz2 |
* config.sub configure.in config/.Sanitize config/mh-irix4
gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r-- | gdb/mipsread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c index 3f2fcd0..61c3d3a 100644 --- a/gdb/mipsread.c +++ b/gdb/mipsread.c @@ -2347,10 +2347,11 @@ psymtab_to_symtab_1(pst, filename) /* Procedures next, note we need to look-ahead to find out where the procedure's code ends */ - for (i = 0; i < fh->cpd-1; i++) { + if (fh->cpd > 0) + for (i = 0; i < fh->cpd-1; i++) { pr = (PDR *) (IPDFIRST(cur_hdr, fh)) + i; parse_procedure(pr, pr[1].adr); /* next proc up */ - } + } if (fh->cpd) { pr = (PDR *) (IPDFIRST(cur_hdr, fh)) + i; parse_procedure(pr, bound); /* next file up */ |