summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-10 13:32:43 +0000
committerphk <phk@FreeBSD.org>1995-12-10 13:32:43 +0000
commita298a1843c7bfa2a35aa57de463ba467aeb911e2 (patch)
treeb08207b099364bc62470d5ab3e385be9d742e2c9 /sys
parent2bdd745e5fbfb56190329a4e00ced6207c58f408 (diff)
downloadFreeBSD-src-a298a1843c7bfa2a35aa57de463ba467aeb911e2.zip
FreeBSD-src-a298a1843c7bfa2a35aa57de463ba467aeb911e2.tar.gz
Staticize and cleanup.
Diffstat (limited to 'sys')
-rw-r--r--sys/ddb/db_break.c4
-rw-r--r--sys/ddb/db_input.c10
-rw-r--r--sys/ddb/db_lex.c6
-rw-r--r--sys/ddb/db_run.c10
-rw-r--r--sys/ddb/db_sym.c4
-rw-r--r--sys/ddb/db_watch.c4
-rw-r--r--sys/ddb/ddb.h3
7 files changed, 20 insertions, 21 deletions
diff --git a/sys/ddb/db_break.c b/sys/ddb/db_break.c
index 2887b45..99f7769 100644
--- a/sys/ddb/db_break.c
+++ b/sys/ddb/db_break.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_break.c,v 1.8 1995/11/29 10:25:09 phk Exp $
+ * $Id: db_break.c,v 1.9 1995/12/07 12:44:46 davidg Exp $
*/
/*
@@ -46,7 +46,7 @@
#include <ddb/db_sym.h>
#define NBREAKPOINTS 100
-struct db_breakpoint db_break_table[NBREAKPOINTS];
+static struct db_breakpoint db_break_table[NBREAKPOINTS];
static db_breakpoint_t db_next_free_breakpoint = &db_break_table[0];
static db_breakpoint_t db_free_breakpoints = 0;
static db_breakpoint_t db_breakpoint_list = 0;
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c
index c7b4470..8d8b025 100644
--- a/sys/ddb/db_input.c
+++ b/sys/ddb/db_input.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_input.c,v 1.9 1995/11/29 10:25:21 phk Exp $
+ * $Id: db_input.c,v 1.10 1995/12/07 12:44:51 davidg Exp $
*/
/*
@@ -48,10 +48,10 @@
* since input always ends with a new-line. We just
* reset the line position at the end.
*/
-char * db_lbuf_start; /* start of input line buffer */
-char * db_lbuf_end; /* end of input line buffer */
-char * db_lc; /* current character */
-char * db_le; /* one past last character */
+static char * db_lbuf_start; /* start of input line buffer */
+static char * db_lbuf_end; /* end of input line buffer */
+static char * db_lc; /* current character */
+static char * db_le; /* one past last character */
#define CTRL(c) ((c) & 0x1f)
#define isspace(c) ((c) == ' ' || (c) == '\t')
diff --git a/sys/ddb/db_lex.c b/sys/ddb/db_lex.c
index 38f95a5..26b8dae 100644
--- a/sys/ddb/db_lex.c
+++ b/sys/ddb/db_lex.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_lex.c,v 1.8 1995/11/29 10:25:23 phk Exp $
+ * $Id: db_lex.c,v 1.9 1995/12/07 12:44:52 davidg Exp $
*/
/*
@@ -39,8 +39,8 @@
#include <ddb/ddb.h>
#include <ddb/db_lex.h>
-char db_line[120];
-char * db_lp, *db_endlp;
+static char db_line[120];
+static char * db_lp, *db_endlp;
static int db_lex __P((void));
static void db_flush_line __P((void));
diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c
index 86b83d2..04fe1fe 100644
--- a/sys/ddb/db_run.c
+++ b/sys/ddb/db_run.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_run.c,v 1.7 1995/11/29 10:25:31 phk Exp $
+ * $Id: db_run.c,v 1.8 1995/12/07 12:44:57 davidg Exp $
*/
/*
@@ -45,7 +45,7 @@
#include <ddb/db_break.h>
#include <ddb/db_access.h>
-int db_run_mode;
+static int db_run_mode;
#define STEP_NONE 0
#define STEP_ONCE 1
#define STEP_RETURN 2
@@ -54,9 +54,9 @@ int db_run_mode;
#define STEP_INVISIBLE 5
#define STEP_COUNT 6
-boolean_t db_sstep_print;
-int db_loop_count;
-int db_call_depth;
+static boolean_t db_sstep_print;
+static int db_loop_count;
+static int db_call_depth;
int db_inst_count;
int db_load_count;
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 61f8cbe5..a894a55 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.11 1995/11/29 10:25:35 phk Exp $
+ * $Id: db_sym.c,v 1.12 1995/12/07 12:44:58 davidg Exp $
*/
/*
@@ -47,7 +47,7 @@
static db_symtab_t db_symtabs[MAXNOSYMTABS] = {{0,},};
static int db_nsymtab = 0;
-db_symtab_t *db_last_symtab;
+static db_symtab_t *db_last_symtab;
static db_sym_t db_lookup __P(( char *symstr));
static char *db_qualify __P((db_sym_t sym, char *symtabname));
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index 4cec857..9e99c05 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_watch.c,v 1.8 1995/11/29 10:25:44 phk Exp $
+ * $Id: db_watch.c,v 1.9 1995/12/07 12:45:05 davidg Exp $
*/
/*
@@ -54,7 +54,7 @@
static boolean_t db_watchpoints_inserted = TRUE;
#define NWATCHPOINTS 100
-struct db_watchpoint db_watch_table[NWATCHPOINTS];
+static struct db_watchpoint db_watch_table[NWATCHPOINTS];
static db_watchpoint_t db_next_free_watchpoint = &db_watch_table[0];
static db_watchpoint_t db_free_watchpoints = 0;
static db_watchpoint_t db_watchpoint_list = 0;
diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h
index e270b93..c231ac4 100644
--- a/sys/ddb/ddb.h
+++ b/sys/ddb/ddb.h
@@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ddb.h,v 1.8 1995/11/29 10:25:50 phk Exp $
+ * $Id: ddb.h,v 1.9 1995/12/07 12:45:08 davidg Exp $
*/
/*
@@ -88,7 +88,6 @@ void db_write_bytes __P((vm_offset_t addr, int size, char *data));
/* machine-dependent */
void kdb_init __P((void));
void kdbprintf __P((const char *fmt, ...));
-void kdbprinttrap __P((int, int));
db_cmdfcn_t db_breakpoint_cmd;
db_cmdfcn_t db_continue_cmd;
OpenPOWER on IntegriCloud