* mdebugread.c (parse_symbol): For stEnd, we're done counting
authorKevin Buettner <kevinb@redhat.com>
Wed, 19 Mar 2003 19:45:49 +0000 (19:45 +0000)
committerKevin Buettner <kevinb@redhat.com>
Wed, 19 Mar 2003 19:45:49 +0000 (19:45 +0000)
when iss is issNull.

gdb/ChangeLog
gdb/mdebugread.c

index 3868d38e8e8f525cc7fb679ac764c373dbf09d65..de6db2dc24f5d8a508283c2f112abf73b4b05962 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-19  Kevin Buettner  <kevinb@redhat.com>
+
+       * mdebugread.c (parse_symbol): For stEnd, we're done counting
+       when iss is issNull.
+
 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
 
        * mips-tdep.c (mips_register_name): Fix fencepost error involving
index 7c17d616fea2d7282b89d3e2b2c8f9d9350aa427..84b1afa5a7b6091aebdd42e9d44cbcb2a0b7a41d 100644 (file)
@@ -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;