* partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
authorRon Unrau <runrau@cygnus>
Sun, 14 Jun 1998 14:48:27 +0000 (14:48 +0000)
committerRon Unrau <runrau@cygnus>
Sun, 14 Jun 1998 14:48:27 +0000 (14:48 +0000)
          CUR_SYMBOL_VALUE as CORE_ADDR instead of long
        * buildsym.[ch]: export pending_blocks list
* tm-txvu.h: define TARGET_READ_SP and TARGET_WRITE_SP
* txvu-tdep.c: rewrite symtabs to support N_FUN symbols in overlays.
  (Actually, the last version did this for N_SLINE symbols).
  (txvu_read_sp,txvu_write_sp): new

gdb/buildsym.c
gdb/buildsym.h
gdb/partial-stab.h

index b104f16e928acf01cf4e3c4968c1b57b5f66a010..0ebebdb149c723bf4438cfe631eba6f9601eb90e 100644 (file)
@@ -44,13 +44,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
    questionable--see comment where we call them).  */
 #include "stabsread.h"
 
-/* Pointer to the head of a linked list of symbol blocks which have
-   already been finalized (lexical contexts already closed) and which are
-   just waiting to be built into a blockvector when finalizing the
-   associated symtab. */
-
-static struct pending_block *pending_blocks = NULL;
-
 /* List of free `struct pending' structures for reuse.  */
 
 static struct pending *free_pendings;
index 5f572b2891b9b1bedb8152b627c5a564a0b6ff76..5cf7548345a69900d4341e87dec81e4c2db10d8e 100644 (file)
@@ -166,6 +166,13 @@ struct pending_block
   struct block *block;
 };
 
+/* Pointer to the head of a linked list of symbol blocks which have
+   already been finalized (lexical contexts already closed) and which are
+   just waiting to be built into a blockvector when finalizing the
+   associated symtab. */
+
+EXTERN struct pending_block *pending_blocks;
+
 \f
 struct subfile_stack
 {
index c494a07484d7b33a600f856de3b7fdf3e46bb43d..15c5a00855d41ad32b35d5edb33cc13e2d7d4d19 100644 (file)
@@ -601,8 +601,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #endif /* DBXREAD_ONLY */
              add_psymbol_to_list (namestring, p - namestring,
                                   VAR_NAMESPACE, LOC_BLOCK,
-                                  &objfile->static_psymbols, CUR_SYMBOL_VALUE,
-                                  0, psymtab_language, objfile);
+                                  &objfile->static_psymbols,
+                                  0, CUR_SYMBOL_VALUE,
+                                  psymtab_language, objfile);
              continue;
 
              /* Global functions were ignored here, but now they
@@ -646,8 +647,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #endif /* DBXREAD_ONLY */
              add_psymbol_to_list (namestring, p - namestring,
                                   VAR_NAMESPACE, LOC_BLOCK,
-                                  &objfile->global_psymbols, CUR_SYMBOL_VALUE,
-                                  0, psymtab_language, objfile);
+                                  &objfile->global_psymbols,
+                                  0, CUR_SYMBOL_VALUE,
+                                  psymtab_language, objfile);
              continue;
 
              /* Two things show up here (hopefully); static symbols of