From 0f00fbdf2b25a1170f2bf4cc84c6627518b12d77 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 30 Jun 1997 23:54:50 +0000 Subject: Some staticized variables were still declared to be extern. --- sys/ddb/db_sym.c | 12 ++++++++---- sys/ddb/db_sym.h | 9 +-------- sys/ddb/db_variables.h | 4 +--- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 7a83f7c..0eed0cb 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_sym.c,v 1.18 1997/02/22 09:28:29 peter Exp $ + * $Id: db_sym.c,v 1.19 1997/06/30 23:49:16 bde Exp $ */ /* @@ -46,7 +46,7 @@ static db_symtab_t db_symtabs[MAXNOSYMTABS] = {{0,},}; static int db_nsymtab = 0; -static db_symtab_t *db_last_symtab; +static db_symtab_t *db_last_symtab; /* where last symbol was found */ static db_sym_t db_lookup __P(( char *symstr)); static char *db_qualify __P((db_sym_t sym, char *symtabname)); @@ -178,11 +178,15 @@ db_lookup(symstr) } /* + * If TRUE, check across symbol tables for multiple occurrences + * of a name. Might slow things down quite a bit. + */ +static volatile boolean_t db_qualify_ambiguous_names = FALSE; + +/* * Does this symbol name appear in more than one symbol table? * Used by db_symbol_values to decide whether to qualify a symbol. */ -static boolean_t db_qualify_ambiguous_names = FALSE; - static boolean_t db_symbol_is_ambiguous(sym) db_sym_t sym; diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h index d3419e4..c79218d 100644 --- a/sys/ddb/db_sym.h +++ b/sys/ddb/db_sym.h @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_sym.h,v 1.12 1997/02/22 09:28:30 peter Exp $ + * $Id: db_sym.h,v 1.13 1997/06/30 23:49:17 bde Exp $ */ #ifndef _DDB_DB_SYM_H_ @@ -44,8 +44,6 @@ typedef struct { char *private; /* optional machdep pointer */ } db_symtab_t; -extern db_symtab_t *db_last_symtab; /* where last symbol was found */ - /* * Symbol representation is specific to the symtab style: * BSD compilers use dbx' nlist, other compilers might use @@ -66,11 +64,6 @@ typedef int db_strategy_t; /* search strategy */ #define DB_STGY_XTRN 1 /* only external symbols */ #define DB_STGY_PROC 2 /* only procedures */ -extern boolean_t db_qualify_ambiguous_names; - /* if TRUE, check across symbol tables - * for multiple occurrences of a name. - * Might slow down quite a bit */ - /* * Functions exported by the symtable module */ diff --git a/sys/ddb/db_variables.h b/sys/ddb/db_variables.h index 62cdb8c..98b83a4 100644 --- a/sys/ddb/db_variables.h +++ b/sys/ddb/db_variables.h @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id$ + * $Id: db_variables.h,v 1.7 1997/02/22 09:28:32 peter Exp $ */ /* @@ -50,8 +50,6 @@ struct db_variable { }; #define FCN_NULL ((db_varfcn_t *)0) -extern struct db_variable db_vars[]; /* debugger variables */ -extern struct db_variable *db_evars; extern struct db_variable db_regs[]; /* machine registers */ extern struct db_variable *db_eregs; -- cgit v1.1