* partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
authorStu Grossman <grossman@cygnus>
Thu, 31 Dec 1992 17:24:06 +0000 (17:24 +0000)
committerStu Grossman <grossman@cygnus>
Thu, 31 Dec 1992 17:24:06 +0000 (17:24 +0000)
case.  Use code in N_SOL.

gdb/ChangeLog
gdb/partial-stab.h

index 15cb2430d9c471554a655fa8130366d70994da2d..309f20bccb5188829ebacba7517e69becbe5903a 100644 (file)
@@ -1,5 +1,8 @@
 Thu Dec 31 09:03:02 1992  Stu Grossman  (grossman at cygnus.com)
 
+       * partial-stab.h (near N_BINCL):  Remove redundant code in N_BINCL
+       case.  Use code in N_SOL.
+
        * paread.c:  New file that contains all HPPA/HPUX symbol reading
        code.
        * dbxread.c:  Remove almost all HPPA/HPUX symbol reading code.
index 8361ff07d7ada01087dbdf57e5e814af585fc03f..d69f7f63e7e48bf0c13ef9fb4398d0ae7f7d4f85 100644 (file)
@@ -267,20 +267,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
          /* Mark down an include file in the current psymtab */
 
-         psymtab_include_list[includes_used++] = namestring;
-         if (includes_used >= includes_allocated)
-           {
-             char **orig = psymtab_include_list;
-
-             psymtab_include_list = (char **)
-               alloca ((includes_allocated *= 2) *
-                       sizeof (char *));
-             memcpy ((PTR)psymtab_include_list, (PTR)orig,
-                     includes_used * sizeof (char *));
-           }
+         goto record_include_file;
 
-#endif /* DBXREAD_ONLY */
+#else /* DBXREAD_ONLY */
          continue;
+#endif
 
        case N_SOL:
          /* Mark down an include file in the current psymtab */
@@ -311,6 +302,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
              continue;
          }
 
+       record_include_file:
+
          psymtab_include_list[includes_used++] = namestring;
          if (includes_used >= includes_allocated)
            {