* partial-stab.h (case N_TEXT): Fix fencepost error when
authorStu Grossman <grossman@cygnus>
Wed, 24 Jun 1992 07:31:55 +0000 (07:31 +0000)
committerStu Grossman <grossman@cygnus>
Wed, 24 Jun 1992 07:31:55 +0000 (07:31 +0000)
detecting start of new symbol info after reading symtab for a
module with a zero length TEXT segment.
(Note that this fixes the BNR problem with printing vxWorksVersion.  That ought
to make Ken happy).

gdb/ChangeLog
gdb/partial-stab.h

index 6aaec86b2784038d5d6a35e48220a1605a3d85be..cdd3bf541ccf95069d716327096805c1ca4f6f56 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jun 24 00:26:56 1992  Stu Grossman  (grossman at cygnus.com)
+
+       * partial-stab.h (case N_TEXT):  Fix fencepost error when
+       detecting start of new symbol info after reading symtab for a
+       module with a zero length TEXT segment.
+
 Tue Jun 23 21:46:26 1992  Fred Fish  (fnf@cygnus.com)
 
        * Makefile.in (VERSION):  Bump to 4.5.6.
index e064aeb359580bc39688d1c487f00754928c1978..c48141a7cb3ca76c8a1672e4b9c7dc590bc9426d 100644 (file)
@@ -89,7 +89,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
              if (past_first_source_file && pst
                  /* The gould NP1 uses low values for .o and -l symbols
                     which are not the address.  */
-                 && CUR_SYMBOL_VALUE > pst->textlow)
+                 && CUR_SYMBOL_VALUE >= pst->textlow)
                {
                  END_PSYMTAB (pst, psymtab_include_list, includes_used,
                               symnum * symbol_size, CUR_SYMBOL_VALUE,