diff options
author | Kevin Buettner <kevinb@redhat.com> | 2003-03-19 19:45:49 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2003-03-19 19:45:49 +0000 |
commit | 7bde89676de964a96a4d3d6e2972fca584882afa (patch) | |
tree | e725ef7dc23f54a2151648b1942d76423def45b6 /gdb/mdebugread.c | |
parent | 4f39e3028392284da899bc399b516c1ee67106e2 (diff) | |
download | gdb-7bde89676de964a96a4d3d6e2972fca584882afa.zip gdb-7bde89676de964a96a4d3d6e2972fca584882afa.tar.gz gdb-7bde89676de964a96a4d3d6e2972fca584882afa.tar.bz2 |
* mdebugread.c (parse_symbol): For stEnd, we're done counting
when iss is issNull.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 7c17d61..84b1afa 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -916,9 +916,13 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, method whose name is identical to the class name (in particular constructor method names are different from the class name). There is therefore no risk that - this check stops the count on the StEnd of a method. */ - if (strcmp (debug_info->ss + cur_fdr->issBase + tsym.iss, - name) == 0) + this check stops the count on the StEnd of a method. + + Also, assume that we're really at the end when tsym.iss + is 0 (issNull). */ + if (tsym.iss == issNull + || strcmp (debug_info->ss + cur_fdr->issBase + tsym.iss, + name) == 0) goto end_of_fields; break; |