summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_sym.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-29 10:25:50 +0000
committerphk <phk@FreeBSD.org>1995-11-29 10:25:50 +0000
commit6056f81916a007badc44587b720c1bc308265cae (patch)
tree04a837dcdadd73fa6cc99eaeb902219e812b9833 /sys/ddb/db_sym.c
parent051ce4c479c45d09eeaf7abcee957e6330406458 (diff)
downloadFreeBSD-src-6056f81916a007badc44587b720c1bc308265cae.zip
FreeBSD-src-6056f81916a007badc44587b720c1bc308265cae.tar.gz
Staticized and '#ifdef notused' stuff we don't use.
Diffstat (limited to 'sys/ddb/db_sym.c')
-rw-r--r--sys/ddb/db_sym.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 64dc5d5..02e5383 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.9 1995/05/30 07:57:10 rgrimes Exp $
+ * $Id: db_sym.c,v 1.10 1995/11/24 14:13:41 bde Exp $
*/
/*
@@ -43,14 +43,16 @@
#define MAXNOSYMTABS 3 /* mach, ux, emulator */
#endif
-db_symtab_t db_symtabs[MAXNOSYMTABS] = {{0,},};
-int db_nsymtab = 0;
+static db_symtab_t db_symtabs[MAXNOSYMTABS] = {{0,},};
+static int db_nsymtab = 0;
db_symtab_t *db_last_symtab;
-extern db_sym_t db_lookup __P(( char *symstr));
+static db_sym_t db_lookup __P(( char *symstr));
static char *db_qualify __P((db_sym_t sym, char *symtabname));
-extern boolean_t db_symbol_is_ambiguous __P((db_sym_t sym));
+static boolean_t db_symbol_is_ambiguous __P((db_sym_t sym));
+static boolean_t db_line_at_pc __P((db_sym_t, char **, int *,
+ db_expr_t));
/*
* Add symbol table, with given name, to list of symbol tables.
@@ -130,7 +132,7 @@ db_value_of_name(name, valuep)
* then only the specified symbol table will be searched;
* otherwise, all symbol tables will be searched.
*/
-db_sym_t
+static db_sym_t
db_lookup(symstr)
char *symstr;
{
@@ -179,9 +181,9 @@ db_lookup(symstr)
* Does this symbol name appear in more than one symbol table?
* Used by db_symbol_values to decide whether to qualify a symbol.
*/
-boolean_t db_qualify_ambiguous_names = FALSE;
+static boolean_t db_qualify_ambiguous_names = FALSE;
-boolean_t
+static boolean_t
db_symbol_is_ambiguous(sym)
db_sym_t sym;
{
@@ -304,7 +306,7 @@ db_printsym(off, strategy)
}
}
-boolean_t
+static boolean_t
db_line_at_pc( sym, filename, linenum, pc)
db_sym_t sym;
char **filename;
OpenPOWER on IntegriCloud