* partial-stab.h (N_SO): Rearrange code a little so that all SO
authorStu Grossman <grossman@cygnus>
Thu, 25 Jun 1992 22:46:04 +0000 (22:46 +0000)
committerStu Grossman <grossman@cygnus>
Thu, 25 Jun 1992 22:46:04 +0000 (22:46 +0000)
stabs cause end_psymtab to be called.

gdb/ChangeLog
gdb/partial-stab.h

index be38bcfb269b67ace0099cef738430adfb95fad8..ee2981d8a05f6639e98c42c8d9a334938d93d422 100644 (file)
@@ -1,5 +1,8 @@
 Thu Jun 25 15:18:42 1992  Stu Grossman  (grossman at cygnus.com)
 
+       * partial-stab.h (N_SO):  Rearrange code a little so that all SO
+       stabs cause end_psymtab to be called.
+
        * buildsym.c (read_sun_builtin_type):  Handle new FCS Sun CC
        compiler feature of putting 'c' into basic type descriptors for
        all forms of char.
index c48141a7cb3ca76c8a1672e4b9c7dc590bc9426d..29c771609cdb770484af2ed9745f4822fc7885d5 100644 (file)
@@ -204,6 +204,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
          valu += addr;         /* Relocate */
 
+         if (pst)
+           {
+             END_PSYMTAB (pst, psymtab_include_list, includes_used,
+                          symnum * symbol_size, valu,
+                          dependency_list, dependencies_used);
+             pst = (struct partial_symtab *) 0;
+             includes_used = 0;
+             dependencies_used = 0;
+           }
+
          /* Some compilers (including gcc) emit a pair of initial N_SOs.
             The first one is a directory name; the second the file name.
             If pst exists, is empty, and has a filename ending in '/',
@@ -223,16 +233,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
            continue;           /* Ignore repeated SOs */
          last_so_symnum = symnum;
 
-         if (pst)
-           {
-             END_PSYMTAB (pst, psymtab_include_list, includes_used,
-                          symnum * symbol_size, valu,
-                          dependency_list, dependencies_used);
-             pst = (struct partial_symtab *) 0;
-             includes_used = 0;
-             dependencies_used = 0;
-           }
-
          past_first_source_file = 1;
 
          if (dir_so_symnum == symnum - 1) /* Was prev. SO a directory? */