aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Unrau <runrau@cygnus>1998-06-14 14:48:27 +0000
committerRon Unrau <runrau@cygnus>1998-06-14 14:48:27 +0000
commitf85d9973b3e0634efe442379739d454d66e1ebb9 (patch)
tree90465ef66f06df9b15ca85c434fabdff1835b165
parent47963370862cc6cfb70aa6896b0231d20330dd2e (diff)
downloadgdb-f85d9973b3e0634efe442379739d454d66e1ebb9.zip
gdb-f85d9973b3e0634efe442379739d454d66e1ebb9.tar.gz
gdb-f85d9973b3e0634efe442379739d454d66e1ebb9.tar.bz2
* partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
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
-rw-r--r--gdb/buildsym.c7
-rw-r--r--gdb/buildsym.h7
-rw-r--r--gdb/partial-stab.h10
3 files changed, 13 insertions, 11 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index b104f16..0ebebdb 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -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;
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 5f572b2..5cf7548 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -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;
+
struct subfile_stack
{
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index c494a07..15c5a00 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -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